NEF -> JPG only get embedded thumbnails

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Speedy G
Posts: 1
Joined: 2012-04-11T16:34:13-07:00
Authentication code: 8675308

NEF -> JPG only get embedded thumbnails

Post by Speedy G » 2012-04-11T16:47:13-07:00

Hi, I'm trying to convert NEF files to JPG but I only get the thumbnails that are embedded in the NEF file, with resolution of 160x120. When I use convert from the shell it works perfectly, but when I do it using imagick it doesn't work. Here's the PHP code:

public function convertir($origen){
$image = new Imagick();

Here's the pic info before the conversion:
identify _DSC0861.ixora\ amarilla.NEF
_DSC0861.ixora amarilla.NEF=>/tmp/magick-XXeyseZJ.png NEF 2868x4310 2868x4310+0+0 16-bit DirectClass 57.97MB 0.010u 0:00.019

Here's the pic info after the conversion:
identify flor
flor JPEG 160x120 160x120+0+0 8-bit DirectClass 14.8KB 0.000u 0:00.000

Version: ImageMagick 6.6.5-10 2010-11-26 Q16
I'm using ufraw version 0.18
Also the machine has CentOS 6.2

Post Reply