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
JFreeman

convert jp2 to pdf

Post by JFreeman »

Can i use convert to encapsulate jp2 files in
one pdf?

I i just have jpg files a

Code: Select all

convert *.jpg test.pdf
works fine and the pdf size is the sum of the jpg sizes.

A

Code: Select all

convert *.jp2 test.pdf
seems to convert the jp2 files in another image format (jpg?).
This results in a huge file size.

Can i tell convert not to do this?

I know since pdf 1.5 jp2 is supported.
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 »

I am not an expert on this format. But do you have the jasper delegate library installed? It is needed for jp2 (jpeg2000) format images, I believe. You can confirm this by typing

convert -list configure

and look at the line starting with DELEGATES. If it has jp2 listed then you have it installed. If not try getting it. See http://www.imagemagick.org/download/delegates/ or google it to get a more current version.

Also see http://www.imagemagick.org/Usage/formats/#jpg under related JPG formats
JFreeman

Re: convert jp2 to pdf

Post by JFreeman »

I get

Code: Select all

convert -list configure

Path: /usr/lib/ImageMagick-6.2.4/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc
CFLAGS        -g -O2 -Wall -pthread
CONFIGURE     ./configure --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info --with-gs-font-dir=/usr/share/fonts/type1/gsfonts --with-magick-plus-plus --enable-shared --enable-lzw --without-dps --without-fpx --without-perl --with-perl-options=INSTALLDIRS=vendor --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11
COPYRIGHT     Copyright (C) 1999-2005 ImageMagick Studio LLC
CPPFLAGS      -I/usr/include
CVS_BRANCH_TAG HEAD
CXX           g++
CXXFLAGS      -pthread
DEFS          -DHAVE_CONFIG_H
DISTCHECK_CONFIG_FLAGS --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info --with-gs-font-dir=/usr/share/fonts/type1/gsfonts --with-magick-plus-plus --enable-shared --enable-lzw --without-dps --without-fpx --without-perl --with-perl-options=INSTALLDIRS=vendor --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11
EXEC-PREFIX   /usr
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/lib -L/usr/lib/X11 -lfreetype -lz -L/usr/lib
LIB_VERSION   0x624
LIB_VERSION_NUMBER 6,2,4,5
LIBS          -lMagick -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread
NAME          ImageMagick
PCFLAGS
PREFIX        /usr
QuantumDepth  16
RELEASE_DATE  07/28/09
VERSION       6.2.4
WEBSITE       http://www.imagemagick.org
Under LIBS jasper is listed, but my version seems to be old. Since I am at work I try to install a new version in user space.
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 »

Your IM is extremely old at 6.2.4. IM is now at 6.5.8-6. So that is about 350 versions old. Update IM if you can and also your delegate libraries.
Post Reply