ZenphotoCMS Forum
NEF management - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: NEF management (/thread-10751.html)



NEF management - dsoldi - 2013-01-19

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?




NEF management - kagutsuchi - 2013-01-19

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




NEF management - dsoldi - 2013-01-19

Thank you kagutsuchi!
So the problem is server-side? Unfortunately my ZP is hosted by an ISP.
I'will try this next month on my own server.
Thank you again.




NEF management - dsoldi - 2013-01-19

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 ?




NEF management - acrylian - 2013-01-19

The best way would be to open a ticket.




NEF management - sbillard - 2013-01-19

Include in the ticket which tags specifically do you need. I shoot Nikon, and granted the D300s is not pro series, I have not seen anything needed missing.