Page 1 of 1

Conversion from Image to PDF failing

Posted: 2014-02-02T05:27:53-07:00
by chipairon
Hello,

I am trying to convert this image to pdf (I do not own any rights about it, just found it through google images) http://i.huffpost.com/gen/1191232/thumb ... cebook.jpg

I download the image and then try to convert it to pdf with:

Code: Select all

mogrify -format Pdf /tmp/dali_image.jpg
And is resulting in a blank Pdf :(

I tried the 'convert' command with the same result (a blank pdf).

I have a script that converts a lot of images to pdf and the problem is that this conversion is 'failing silently'.

Thanks for your help

I am using:
mogrify --version
Version: ImageMagick 6.7.7-10 2013-09-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

On Ubuntu 13.10 64-bit

Re: Conversion from Image to PDF failing

Posted: 2014-02-02T11:30:35-07:00
by snibgo
The image has a resolution of 0.03 pixels per centimetre. Each pixel is about a foot wide. Use something sensible like "-density 72 -units pixesperinch" and it works fine.