Reputation: 549
I am converting a png file to jp2 format using imagemagick and even though I am configuring it to have quality 100, it still loses quality but only on the transparent gradient background and the borders of my image.
Command used in console:
magick input_image.png -quality 100 output_image.jp2
Below are only part of the input image and the output image where you can clearly see the loss of quality
I haven't found anything on imagemagick that explains this quality loss or what config could fix it.
*I have successfully used a third party site to convert my png to jp2 format and there was no loss of quality.
Upvotes: 0
Views: 997
Reputation: 53164
This works fine for me on IM 7.0.10.16 Q16 Mac OSX Sierra with OpenJPEG 2.3.1. (You need OpenJPEG 2.1 or higher)
magick img.png -quality 0 img.jp2
See https://imagemagick.org/script/jp2.php, but change "magick convert" to just "magick"
Upvotes: 3