Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opj_compress crops image (win) or creates a jp2 which cannot be decompressed (lin) #716

Closed
d462d91f96 opened this issue Feb 24, 2016 · 1 comment

Comments

@d462d91f96
Copy link

opj_compress -i input-test.png -o output-linux-master-20160223.jp2 -I -n 6 -p RPCL -t 1024,1024 -b 64,64 -r 2560,1280,640,320,160,80,40,20 -c [256,256],[256,256],[128,128],[128,128],[128,128],[128,128] -SOP -EPH

Hi! Using these specific options, with an input image of this specific size and colour space (see examples.zip), there are following problems:

  • The Windows 2.1.0 release creates a JP2, which is cropped at the bottom, without throwing an error. This JP2 is opj_decompress-able and viewable, but cropped.
  • On Linux, a fresh build master creates a JP2 without throwing an error, which cannot be decompressed or viewed by opj_decompress, jasper, gimp, ...

This error won't occur with a blank image, there has to be some content at the bottom.

Best regards

examples.zip

@rouault
Copy link
Collaborator

rouault commented Sep 2, 2017

This is no longer reproducable with openjpeg 2.2.0. Likely due to the correction on the number of resolutions.

@rouault rouault closed this as completed Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants