jpeg to pdf conversion

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
mala

jpeg to pdf conversion

Post by mala »

I used to convert jpeg files to pdf using just the command
convert fil1.jpg file2.pdf
The size of the jpg and pdf files was comparable
This was with the preinstalled convert (Version: ImageMagick 6.2.3 02/24/06)
under SuSE Linux 10.
Now I updated to SuSE Linux 11 and the same command seems to produce
pdf files about ten time bigger. In this case the version is 6.4.3 2008-12-03
Do I miss something?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: jpeg to pdf conversion

Post by magick »

We get comparable results when we convert JPEG to PDF with the latest ImageMagick release 6.5.0. Try explicitly setting the compression:
  • convert image.jpg -compress JPEG image.pdf
Does that make a difference?
mala

Re: jpeg to pdf conversion

Post by mala »

Yes! It does , the behaviour becomes the same as before, the resulting pdf file
having essentially the same size as the jpeg one.
Also, as far as I can see, there no difference between the "compressed" and "non compressed"
files (visual check zooming in on the screen).
And finally the "compressed" version executes a little faster (about 15%).
Thanks a lot.
Of course now I wonder what is the benefit of this new way to convert.
Post Reply