Converting Nikon JPG images to PDF doesn't work

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
aparker

Converting Nikon JPG images to PDF doesn't work

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Can you post a URL to your image so we can download it and reproduce the problem?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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
aparker

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

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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.
aparker

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

Post by aparker »

What version of convert are you using?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post by Bonzo »

As I say I have 6.3.4 here on the XP machine and 6.3.5 on the server.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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).
Post Reply