Suppress split of jpg's

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
Kartoffeldip

Suppress split of jpg's

Post by Kartoffeldip »

Helo!
I convert a PDF in jpg with convert. I have as result multiple jpg's, because convert splits a large PDF-file. It's bothersome - I must afterwards to edit every single jpg-file. Wha'ts the method, in order to suppress the splitting? I am user of Debian Lenny. Thak you an advance! Kartoffeldip
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Suppress split of jpg's

Post by fmw42 »

not sure I understand what you mean by split. jpg does not support multi-page format, so if the pdf has multiple pages, IM will convert them to separate images. If you want to keep the pdf as on multi-page file in another image format, you must use a format that supports multiple pages, such as GIF or TIFF or MNG etc.
Kartoffeldip

Re: Suppress split of jpg's

Post by Kartoffeldip »

You are right - a PDF-file have any pages - it's my fault. The problem exists with OpenOffice. I can determine only 300 cm document-tallness in preferences und not more. I need it, because I use a font size 140. It's necessary by reason that after creating odt-document->export as PDF->convert PDF to jpg I obtain a slow quality of jpg-file, although I use convert with option -quality 100. I create a small video-project with Kdenlive and need a rolling "credits" with text, wich I create as above described. Thank you! Kartoffeldip
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Suppress split of jpg's

Post by fmw42 »

you can improve quality in two ways

1) use -quality 100 for jpg

2) use supersampling between pdf and jpg, but this will be slow

convert -density 288 image.pdf -resize 25% image.jpg

density=288=4*72 so you should resize by 1/4=25%, but you can play with the density and resize factor to adjust or use a different factor to get more or less quality
Kartoffeldip

Re: Suppress split of jpg's

Post by Kartoffeldip »

Thank you! The option -density is very helpful. I obtain a better quality o jpg-file, as with quality-option. With regards, Kartoffeldip
Post Reply