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

Trouble compressing large raw image #1032

Closed
rasweet opened this issue Oct 17, 2017 · 2 comments
Closed

Trouble compressing large raw image #1032

rasweet opened this issue Oct 17, 2017 · 2 comments

Comments

@rasweet
Copy link

rasweet commented Oct 17, 2017

I have a raw image in BIP (RGB,RGB,...) format of width 55722, height 25274, 8 bit precision. When I attempt to use opj_compress using

\opj_compress -i f:\epsgRGBbip.raw -o epsgCompopj_exact.jp2 -F 55722,25274,3,8,u

I get the error message:

Unable to load raw file

Does opj_compress attempt to read in the entire input file before compressing? If so, is there any code available to read in just a few lines at a time? If not, is the compress source code sufficiently modularized that I could modify the input reader rather easily? (I have done similar mods many times with Kakadu.)

I'm hoping to save myself a lot of trouble, if it is impossible to compress big images with opj_compress.

Thanks,
Roland Sweet

@rouault
Copy link
Collaborator

rouault commented Oct 17, 2017

Yes, opj_compress cannot handle big input files. Other tools such as gdal_translate from GDAL can use openjpeg to create large JP2 files, provided reasonable tiles are used.

@rasweet
Copy link
Author

rasweet commented Oct 21, 2017

Thank you for the prompt reply. -- Roland

@rasweet rasweet closed this as completed Oct 21, 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