Page 1 of 1

How to convert lossless jpeg2000 file?

Posted: 2018-08-25T11:10:00-07:00
by tuoidv
How to convert lossless jpeg2000 file?
I'm trying to try the following:
Logo conversion: logo.jp2
Compare MSE logo: logo.jp2 logo.png
A 0db compression result is lossless.
What's the best way?

Re: How to convert lossless jpeg2000 file?

Posted: 2018-08-25T11:33:11-07:00
by snibgo
Your question is vague. What do you want to convert it to? What version of IM are you using? On what platform?

Please link to your JP2 file.

Re: How to convert lossless jpeg2000 file?

Posted: 2018-08-25T11:39:12-07:00
by fmw42
I do not know if this is what you want.

#Convert logo: to logo.jp2

Code: Select all

convert logo: logo.jp2
#Compare logo: with logo.jpg with rmse metric

Code: Select all

compare -metric rmse logo: logo.jp2 null:
0 (0) <-- implies exact match

To convert to JP2000, you need to have the OpenJpeg 2.1 or higher delegate installed.

_______


Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown