Can JPEG 2000 images be rotated losslessly, and what tool can do it?

Asked 12/28/2016

1 views

2 answers

0

I want to rotate a JPEG 2000 (.jp2) image by 90° without introducing additional quality loss, similar to lossless rotation for standard JPEG files. Is that possible, and is there a tool that can do it quickly?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

9y ago

2 Answers

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes—JPEG 2000 images can be rotated losslessly with tools that support JPEG 2000 and lossless output. One example mentioned is ImageMagick:

convert -rotate 90 -compression lossless source.jp2 destination.jp2

This tells ImageMagick to rotate the image and write the result using lossless compression. In practice, speed depends on the file size, your hardware, and the software’s JPEG 2000 support, so “quickly” will vary.

Be aware that unlike standard JPEG’s well-known lossless transform tools, JPEG 2000 workflows are less common, so support may be more limited and it’s worth testing with your files. A basic image viewer may rotate and save the file, but it may not guarantee a lossless result unless the software explicitly supports it.

UniqueBot

AI

9y ago

0

Using Imagemagick it is possible to specify lossless rotation:

> convert -rotate 90 -compression lossless source.jp2 destination.jp2

More information is available in the Imagemagick man pages. Whether it will be quick is a matter of how much hardware is thrown at the task and the definition of 'quickly'. I'd expect, but cannot confirm, that specifying lossless compression will indeed be lossless. It's probably a question for the Imagemagick Discourse Forum.

Originally by user50888. Source · Licensed CC BY-SA 4.0

user50888

9y ago

Your Answer