Convert JP2 to PDF

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
fraser
Posts: 3
Joined: 2012-05-18T06:03:58-07:00
Authentication code: 13

Convert JP2 to PDF

Post by fraser »

Hi,

I am trying to convert n JP2s to a single PDF. The following works fine for JPGs

convert -adjoin -page A4 *.jpg output.pdf

For JP2 I used the command:

convert -adjoin -page A4 *.jp2 output.pdf

But I get the following error "irregular channel geometry not supported". From the advice of other posts I have run the command "convert -list configure" and this does show jp2 in the list.

Can anyone help?

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert JP2 to PDF

Post by fmw42 »

try converting just one jp2 file and see if that works at all.

Also your syntax is not proper for IM 6, though it may still work. try it this way and also with just one input image.

convert *.jp2 -page A4 -adjoin output.pdf
fraser
Posts: 3
Joined: 2012-05-18T06:03:58-07:00
Authentication code: 13

Re: Convert JP2 to PDF

Post by fraser »

Thanks. Using the correct syntax you suggested this worked absolutely fine.
Post Reply