yds12 / tarsila

Pixel art and spritesheet editor
Other
144 stars 7 forks source link

Save images using respective encoder #13

Closed quiet-bear closed 1 year ago

quiet-bear commented 1 year ago

Fixes #5

When saving an image using the image crate, the format is inferred via the path. A write buffer is created for the file and passed into the format's respective encoder, where the options can be modified. There is no direct way of modifying the encoder from the save function, so instead we create the encoders directly so we set the default JPEG compression quality to max.

yds12 commented 1 year ago

Thanks for PR! Merging it now