-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Description
Describe the bug
JPEG textures in an input GLB get exported as PNG, causing such models to grow enormously in size.
To Reproduce
Steps to reproduce the behavior:
- Go to https://threejs.org/editor/
- Import DamagedHelment.glb
- Export as GLB
- Note the original was 3.8 Mb, while the new is 17.9 Mb
Expected behavior
The exported model should be pretty close to the same size as the original. I understand it won't be identical, which is fine, but this is pretty unusable.
Cause
#23385 is sort of the culprit, but really it was #23228 where the RGBFormat was removed and this was the only way we had to tell if a texture had been a JPG or a PNG. @Mugen87 @donmccurdy This is blocking model-viewer's update to r137/r138 because it affects our editor the same as yours. Can anyone think of a quick work-around?
Metadata
Metadata
Assignees
Labels
No labels