Hi, just installed R. 1.4.4 [4d20f7093e] (new clear installation).
My web server runs:
PHP Imagick library 3.0.1
ImageMagick 6.7.8-8 2012-11-06 Q16
I've uploaded some jpg image with no problems, but have a problem with Nikon NEF files (D90 camera).
Image size is detected (and stored in db) as 160x120 (!!) instead of 4352x2848 (actual size).
Thumbnails and image are related to the wrong size (very bad quality, of course)
The problem seems to be in Exif data reading.
I've noticed that "EXIFImageWidth" and "EXIFImageHeight" fields in db has "NULL" value (while "height" is 120 and "width" is 160).
Some ideas?
http://www.imagemagick.org/discourse-server/viewtopic.php?p=93295#p93295
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=12826
From these posts on the ImageMagick forums, it appears that the standard behavior for Imagick is to read the embedded preview JPG in a NEF file. It can't read raw image files on its own.
To correctly read NEF files, ImageMagick needs to use dcraw or ufraw as a decode delegate. delegates.xml is the file where this should be specified and coder.xml should contain a reference to the delegate.
For an example of a delegate: http://www.imagemagick.org/Usage/files/#delegate_dcraw
For ImageMagick resource reference: http://www.imagemagick.org/script/resources.php
About Exif decoding: Nikon has a lot of variations about this (depending on camera model).
Here are codes for pro series cameras:
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html
Is someone able to update exif.php/nikon.php ?