[magick-users] PEF-raw-files question: convert nef:test.pef test.jpg
Al Bogner
imagemagick-user at ml061.pinguin.uni.cc
Sun Aug 5 06:06:13 PDT 2007
When I execute:
convert nef:test.pef test.jpg
what does convert really do, converting the raw file or extracting the
jpg-file?
I tried the following with
ImageMagick 6.3.1 12/28/06 Q16 http://www.imagemagick.org and Opensuse 10.2:
identify nef:test.pef
nef:test.pef=>test.pef NEF 3040x2024 3040x2024+0+0 DirectClass 8-bit
17.6047mb
8bit should be wrong, AFAIK has the rawfile 12bit.
identify test.jpg
test.jpg JPEG 3040x2024 3040x2024+0+0 DirectClass 8-bit 4.12668mb 0.720u
0:02
identify -verbose nef:test.pef | grep "Colors:"
Colors: 545000
identify -verbose test.jpg | grep "Colors:"
Colors: 229414
Ok, it looks like IM uses the raw file, to calculate the colors and not the
included jpg-file.
identify nef:test.pef
nef:test.pef=>test.pef NEF 3040x2024 3040x2024+0+0 DirectClass 8-bit
17.6047mb
identify nef:test.pef | wc -l
1
That's strange, it should show 2 (files)
convert nef:test.pef[0] test0.jpg
convert nef:test.pef[1] test1.jpg
md5sum test*.jpg
280f126e820828d921edae4415e80aba test0.jpg
280f126e820828d921edae4415e80aba test1.jpg
280f126e820828d921edae4415e80aba test.jpg
It is always the same file. So how do I extract the raw-file only or the
jpeg-file?
ufraw-batch --out-type=ppm8 --output=test.ppm test.pef
identify -verbose test.ppm | grep "Colors:"
Colors: 577072
Does anyone have an idea, why there are more colors than in the original one?
ufraw-batch --out-type=tiff8 --output=test8.tif test.pef
identify -verbose test8.tif | grep "Colors:"
Colors: 577072
Al
More information about the Magick-users
mailing list