lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
279 stars 25 forks source link

Support saving TGA to uncompressed RGBA format #155

Closed dirondin closed 1 year ago

dirondin commented 1 year ago

Luna saves TGA in "Runlength encoded color-mapped images" (across specification http://www.paulbourke.net/dataformats/tga/, section "Data Type field"). Some editors don't support this format fully. For example:

Can you add to Luna dialog with variations of saving format (for TGA usually it includes selecting RLE compression and origin)? For me very important "Uncompressed, RGB images".

screenshot

test.tga.zip

Saving TGA dialog in GIMP for example:

image
Tyriar commented 1 year ago

Interesting, thanks for calling this out. I added the ability to encode uncompressed in the lib already, so this is just a matter of adding the ability to tweak options on save.

I'd like Luna Paint to export the most compatible images by default but I'm very surprised Affinity doesn't do RLE correctly 🤔, disabling compression by default would be a shame. Alpha is a little tricky/ambiguous so I can understand the macOS viewer one more.

Tyriar commented 1 year ago

Related: https://github.com/lunapaint/vscode-luna-paint/issues/69, https://github.com/lunapaint/vscode-luna-paint/issues/156