NEF -> JPG only get embedded thumbnails
Posted: 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();
$image->readImage($origen);
$image->setImageFormat('jpeg');
$image->setCompressionQuality(97);
$image->writeImage('/tmp/flor');
}
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 http://www.imagemagick.org
I'm using ufraw version 0.18
Also the machine has CentOS 6.2
public function convertir($origen){
$image = new Imagick();
$image->readImage($origen);
$image->setImageFormat('jpeg');
$image->setCompressionQuality(97);
$image->writeImage('/tmp/flor');
}
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 http://www.imagemagick.org
I'm using ufraw version 0.18
Also the machine has CentOS 6.2