Page 1 of 1

Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T12:16:00-07:00
by aparker
Can any one tell me why a JPG file from a Nikon D80 digital camera can not be converted to PDF using the convert command line?

Each time I try the PDF image is blank, although the file size is about right. All of our other JPG images convert just fine.

Thanks,
Andy

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T13:13:53-07:00
by magick
Can you post a URL to your image so we can download it and reproduce the problem?

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T13:23:54-07:00
by aparker

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T13:45:56-07:00
by Bonzo
It worked OK for me version 6.3.5 ( I think ) 8)

Code: Select all

<?php
exec("convert http://www.hubtack.com/sample.jpg aparker.pdf");
?> 
Image will be removed in 24hrs: http://www.rubblewebs.co.uk/imagemagick ... parker.pdf

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T13:57:16-07:00
by aparker
My bad - posted the wrong file. The correct file is now on the site at

http://www.hubtack.com/sample.jpg

I think it has to do with file size, but I'm not sure.

Sorry.

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T14:04:54-07:00
by Bonzo
The second image works OK as well but I am using php.

Just tried it on a windows XP machine with 6.3.3 Using command prompt worked OK.

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T14:21:14-07:00
by aparker
What version of convert are you using?

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T14:23:12-07:00
by Bonzo
As I say I have 6.3.4 here on the XP machine and 6.3.5 on the server.

Re: Converting Nikon JPG images to PDF doesn't work

Posted: 2007-08-30T14:53:48-07:00
by magick
We tried converting sample.jpg to sample.pdf with ImageMagick 6.3.5-6, the current release, and it worked fine (the PDF displayed properly with the evince viewer).