Page 1 of 1
convert jp2 to pdf
Posted: 2009-12-17T00:28:24-07:00
by JFreeman
Can i use convert to encapsulate jp2 files in
one pdf?
I i just have jpg files a
works fine and the pdf size is the sum of the jpg sizes.
A
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.
Re: convert jp2 to pdf
Posted: 2009-12-17T11:18:37-07:00
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
Re: convert jp2 to pdf
Posted: 2009-12-18T00:16:01-07:00
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.
Re: convert jp2 to pdf
Posted: 2009-12-18T10:47:26-07:00
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.