use Image::LibRaw; my $libraw = Image::LibRaw->new(); $raw->open_file($fname); $raw->unpack_thumb; $raw->dcraw_thumb_writer('libraw-thumb.jpg');
Image::LibRaw is a perl binding for libraw.
create a new instance
open a file
get a image data.
get image size informations
get other informations
unpack the image file to memory
unpack the thumbnail image file to memory
This method write thumbnail image to the file. You should call ->unpack_thumb() before call this method.
This method write image to the file.You should call ->unpack() before call this method.
Frees the allocated data of LibRaw instance.
returns string representation of LibRaw version in MAJOR.MINOR.PATCH-Status format
returns integer representation of LibRaw version.
returns the number of cameras supported.
returns list of supported cameras.
Tokuhiro Matsuno <tokuhirom ah! gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as libraw itself.