rkalla / exiftool

Enhanced Java Integration for Phil Harvey's ExifTool.
Apache License 2.0
88 stars 57 forks source link

Ability to extract Previews as BufferedImage #3

Open gwegner opened 12 years ago

gwegner commented 12 years ago

I would like to use this wrapper for extracting JPG previews from RAW files and use the stay-open feature to increase performance:

-if $jpgfromraw -b -overwrite_original -jpgfromraw -w \"" + jpgname + "\" -execute -if $previewimage -b -overwrite_original -previewimage -w \"" + jpgname +"\";

it would be best to be able to get the result directly as bufferedImage or bytestream without being forced to let exiftool write an intermediate jpg (performance)

boardhead commented 12 years ago

Note that the exiftool -X and -php outputs may both be used to transfer binary data when the -b option is added. For a general interface, I would recommend using -X since it has the ability to provide additional information that isn't available with any of the other output formats.