Conversion from .CR2 or .NEF to .JPG completely removes EXIF

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

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by Bonzo »

I do not think ImageMagick even finds the EXIF data in a CR2 image. If you use identify -verbose IMG_0792.CR2 there is no data displayed.

I thought you could save the data to a file and use jhead to write it back but I do not know if that would work.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by Bonzo »

Search for CR2 and you will find other posts about CR2 images and EXIF.
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by TechnoPhil »

Undestood... so we have to wait someone who explain us this procedure.
Now i'm trying to reinstall ImageMagick

Thank you!
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by TechnoPhil »

Hi Guys,
have you ever used the command: sudo mogrify -format JPG *.CR2 after installed netpbm library?
This command let me convert CR2 images in JPEG but i can't change the compress ratio image mode!
What can you tell me about this command?

I want to convert in JPEG maximun quality 8)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by fmw42 »

User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by TechnoPhil »

Thank you!
This is exactly what i was looking for! 8)
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by TechnoPhil »


Hi,
also is possible to set the DPI of an image!
The command is -density
:o
ugodrus
Posts: 1
Joined: 2012-12-09T22:58:25-07:00
Authentication code: 6789

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by ugodrus »

Does anybody knows how to convert Nikon raw (.NEF) to JPEG with PHP IMAGICK.
Each time i open .NEF with php imagick program read it as tiff with low resolution (width 160px).
Please help.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by snibgo »

The NEF file contains a low-resolution JPG, and that is what Imagick (which isn't ImageMagick) is converting.

ImageMagick can convert the main image by using dcraw as a delegate. I just use dcraw directly.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion from .CR2 or .NEF to .JPG completely removes

Post by fmw42 »

ugodrus wrote:Does anybody knows how to convert Nikon raw (.NEF) to JPEG with PHP IMAGICK.
Each time i open .NEF with php imagick program read it as tiff with low resolution (width 160px).
Please help.

Imagick is not a product of ImageMagick and not supported by Imagemagick. It has not been updated in quite a while and is missing many features of Imagemagick. If you really want to keep up and have more reliable results, then use PHP exec() command in place of Imagick. In general, you will not lose speed. See viewtopic.php?f=4&t=16779
Post Reply