I have an image file with extension .jpg. The linux file command shows the format as JPEG2000.
file myfile.jpg
myfile.jpg: JPEG 2000 image data
I get the following error when converting this file to pdf.
ICC Profile CS 52474220
convert: missing image channel 'myfile.jpg'
@ error/jp2.c/ReadJP2Image/421.
convert: no images defined `image.pdf' @ error/convert.c/ConvertImageCommand/3103.
Image Magick/convert version is 6.8 (installed using rpm) and shows jp2 as one of the delegates.
convert -version
Version: ImageMagick 6.8.4-8 2013-04-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP Modules
Delegates: bzlib djvu fftw fontconfig freetype gslib jng jp2 jpeg lcms lzma openexr png ps rsvg tiff wmf x xml zlib
I would appreciate any feedback as to how to make the conversion to pdf work for this kind of file.
Conversion of JPEG2000 image to pdf using ImageMagick
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Conversion of JPEG2000 image to pdf using ImageMagick
It may that the profile is incompatible with the type color image you have.
You can try to add -strip to your command line to remove the profile and see if that helps. If not, the it might be best to upload your image to dropbox.com (public folder) and put a link here so we can download your file.
You can try to add -strip to your command line to remove the profile and see if that helps. If not, the it might be best to upload your image to dropbox.com (public folder) and put a link here so we can download your file.