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.
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.