theFroh / imagepacker

Takes a Wavefront OBJ with textures and attempts to squash them into a single texture file.
MIT License
49 stars 9 forks source link

[Request] Specifying texture format (for lossless output) #12

Open 4Brad-23 opened 1 year ago

4Brad-23 commented 1 year ago

Brother, you're a time saver and should be commended/compensated, much appreciated.

theFroh commented 1 year ago

Cheers mate, and no worries, this just helped automate a procedure I was doing manually otherwise. As it stands the script doesn't let you pick a specific format, it's hard-coded to emit PNGs. They're lossless, but you may be wanting something else?

Under the hood, the image processing is done via Pillow (https://pillow.readthedocs.io/en/stable/) which supports quite a few formats. It'd be pretty simple to expose as a tweakable to the user.