How to convert lossless jpeg2000 file?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tuoidv
Posts: 1
Joined: 2018-08-25T10:57:14-07:00
Authentication code: 1152

How to convert lossless jpeg2000 file?

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to convert lossless jpeg2000 file?

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to convert lossless jpeg2000 file?

Post 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
Post Reply