[Originally posted by ethiry on 2006-11-23 22:58:52-08]
Hi,
I have a Canon EOS300D and an intel iMac. I made some shots in raw and wanted to delete the jpg from the EXIF with the command exiftool -JpgFromRaw= CRW_9953.CRW.
It works except that the Finder can't display the preview of the file after the command and Aperture 1.5.1 can't load it (both are ok with unprocessed crw files). The file can be opened by GraphicConverter 5.9.2 though.
Any idea ?
Thanks,
Manu
[Originally posted by exiftool on 2006-11-24 01:02:54-08]
Some software may rely on the presence of a jpgfromraw in the
CRW for displaying a preview image. Good software should be able
to deal with a CRW which is missing this, but the Apple RAW utilities
are very young, and not very flexible when it comes to things like this.
CaptureOne on the PC has a similar problem but they weren't very
sympathetic about adding support for modified CRW images.
I suggest you do 2 things:
1) Send a bug report to Apple with a sample image and see if they
can fix this problem. They have been responsive to bug reports in
the past, and each system update fixes more of these problems.
2) In the mean time, you could replace the jpgfromraw with a smaller image
to save space while still giving these utilities the preview they require.
- Phil
[Originally posted by ethiry on 2006-11-26 15:20:12-08]Thank you Phil, I followed both your suggestions.
I added some lines to my original Perl script to make a small jpg, and this one to put it back to the crw :
system sprintf "exiftool '-JpgFromRaw<=%s' %s", $thbfile, $crwfile;
Shame on me, I'm not very fluent in Perl and I didn't succeed in using
exifTool->SetNewValue('JpgFromRaw', ...);
properly.
Can you help ?
Thank you
Manu
[Originally posted by exiftool on 2006-11-26 18:53:06-08]Hi Manu
The system call could be done like this:
system "exiftool '-jpgfromraw<=$thbfile' '$crwfile'";
I put quotes around $crwfile too in case there are space in the file name.
But to do this with SetNewValue is a bit trickier, because you have
to read in the file:
my $buff;
open FILE, $thbfile or die "Can't open $thbfile\n";
read FILE, $buff, 10000000; # (I hope no files are over 10MB)
close FILE;
use Image::ExifTool;
my $exifTool = new Image::ExifTool;
$exifTool->SetNewValue(JpgFromRaw => $buff);
$exifTool->WriteInfo($crwfile);
- Phil