We tried using ImageMagick's "convert" utiltiy from the command line to convert JPEG2000 images to PDF, but it looks like convert is recompressing the souce images. Is there some setting that would turn off recompression and just "wrap" PDF around the original JPEG2000 data?
DETAILS: We have zillions of JPEG2000 scans of historic government land documents, and some of our users want to download them in PDF format. It is my understanding that Adobe Viewer and PDF support JPEG2000 inherently, so we should be able to generate PDFs from our JPEG2000 files without recompressing and sacrificing image quality. When we tried using ImageMagick's convert utility, it generated a PDF that was much larger than the JPEG2000 original file. We tried various settings for image quality and compression, but it really seems like there's no "don't recompress" option.
JPEG2000 to PDF without recompression
Re: JPEG2000 to PDF without recompression
Did you try
- convert image.jp2 -compress JPEG2000 image.pdf
Re: JPEG2000 to PDF without recompression
Thanks for the information, that's what we wanted to know. We have looked at some PDF SDKs but haven't yet found one that is smart enough to not recompress JPEG2000.
Re: JPEG2000 to PDF without recompression
We could code up a wrapper for you if you sent your requirements. There of course would be a modest charge for our time. If interested, send us a private message (PM) to discuss.
Re: JPEG2000 to PDF without recompression
I also I'm interestedmagick wrote:We could code up a wrapper for you if you sent your requirements. There of course would be a modest charge for our time. If interested, send us a private message (PM) to discuss.
Re: JPEG2000 to PDF without recompression
I wrote a tool that does what you want with JPEG and JPEG2000 files. It just embeds them into the pdf without any re-encoding. If any other file type is given, it is just flate encoded. It can also output a multipage pdf.
https://github.com/josch/img2pdf
https://github.com/josch/img2pdf