fix: Switches the HTML and CSS "codecs" to be support files of the web output (which they are), so that they can be affected by the choices within it (eg. the image format being used).
···4242 - wasm
4343 ldflags:
4444 - ""
4545- hooks:
4646- pre:
4747- # This dir needs to be made manually because TinyGo doesn't create output directories
4848- # like Go does. https://github.com/tinygo-org/tinygo/issues/4687
4949- - mkdir -p {{ dir .Path }}
5045 # It's important the postoffice native binary is built after the WASM blob
5146 # As the WASM blob is baked into this server as part of an embed directive.
5247 # This needs to be done by calling goreleaser twice, specifying IDs to build.
+7-2
TODO.md
···11# TODO
2233-- [ ] Get HTML format to output the _right_ image extension (fill out ImageExt argument)
44-- [ ] Read XMP data from generic JPEG format (eg. with EXIF APP1 chunk before XMP APP1 chunk)
33+- [ ] Created USDZs are technically invalid (byte alignment) — can I tweak the output of archive/zip? Or do I need for fork it?
44+- [ ] Determine what this `usdchecker` error means & fix it:
55+ - `Found material bindings but no MaterialBindingAPI applied on the prim </Postcard/Geom/Front>. (fails 'MaterialBindingAPIAppliedChecker')`
56- [ ] Don't re-encode same-same format. (eg. USDZ to Web(no alpha, lossy); Web to Web)
77+- [ ] Read XMP data from generic JPEG format (eg. with EXIF APP1 chunk before XMP APP1 chunk)
68- [ ] Show warning when using fallback size to generate USDZ
79- [ ] Show warning when losing information on conversion (are there any of these cases now?)
810- [ ] Store number of sides in the Metadata
···1113- [ ] Coregistration of front and back (slight rotation & translation differences)
1214- [ ] Allow uploading/choice of SVGs for the back side, to make a "blank" postcard
1315 - [ ] Responsive layout for the back — in physical units
1616+ - [ ] Rendering SVG inside go/wasm
1417- [ ] Allow secrets to be unselected in #PostOffice UI
1518- [ ] Figure out why secrets dragging is janky #PostOffice
1919+- [ ] Allow secrets region selection on touch devices #PostOffice
1620- [ ] Only one postcards.css per group/directory
17211822## Done
···5054- [x] Show useful errors on build fail #PostOffice
5155- [x] Read XMP data from png `web` format
5256- [x] Transparent bordered #USD postcards
5757+- [x] Get HTML format to output the _right_ image extension (fill out ImageExt argument)
···1717 MaxDimension int
1818 // Forces an encode without transparency — filling ant in with the provided card colour. This destroys information, so it will be ignored if archival==true.
1919 NoTransparency bool
2020+ // Will produce support files alongside the postcard (eg. HTML & CSS with the web file)
2121+ IncludeSupportFiles bool
2022}
21232224func (opts *EncodeOptions) WantsLossless() bool {
···44// Generates the HTML needed to display a web postcard.
5566//line postcard.html.qtpl:2
77-package html
77+package web
8899//line postcard.html.qtpl:2
1010import (