Skip to content

gltf-transform optimize --texture-compress webp yields Invalid JPG, marker table corrupted #1305

Answered by donmccurdy
jo-chemla asked this question in Q&A
Discussion options

You must be logged in to vote

I've merged #1306 and published an updated version to v4.0.0-alpha.10, fixing the Invalid JPG, marker table corrupted error. With that update, using --texture-compress webp should work correctly, up to the size limits of the format and the Sharp encoder (https://sharp.pixelplumbing.com/). Example:

gltf-transform optimize input.glb output.glb --texture-compress webp --texture-size 8192 --compress draco --verbose

It's a lower resolution texture of course, but does reduce total size from 94 MB to 13.5 MB.

I should note that .glb files written by glTF Transform will embed any associated textures, whereas your source .glb file had a reference to an external texture, so that difference would ne…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@jo-chemla
Comment options

@donmccurdy
Comment options

Answer selected by jo-chemla
@jo-chemla
Comment options

@donmccurdy
Comment options

@jo-chemla
Comment options

@jo-chemla
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants