petithomme
petithomme

Reputation: 549

Convert PNG to JP2 loss of quality

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 Input Image Output Image

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

Answers (1)

fmw42
fmw42

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)

enter image description here

magick img.png -quality 0 img.jp2


enter image description here

See https://imagemagick.org/script/jp2.php, but change "magick convert" to just "magick"

Upvotes: 3

Related Questions