Re: [Gimp-user] turning off thumbnail in jpeg saves; deleting a thumbnail?



On Wed, 2012-09-19 at 17:20 -0600, Gary Aitken wrote:
Is there any way to turn off the jpeg thumbnail
when writing out a file using file-jpeg-save?
[ ... ]
If it's being created by gimp,
is there a way to delete the thumbnail from an image?

Liam R E Quin writes:
I'd probably use the "exiftool" command-line program to delete
thumbnails if you have lots of them. It's installed with the
Image::ExifTool Perl package.

jhead -dt also works well for removing thumbnails and other
extraneous exif. But it does seem odd that file-jpeg-save doesn't
offer an option to turn off thumbnails when nearly all of the other
parameters are there, and when you can control that when saving
JPEGs interactively. Looking at the source, it defines thumbnail
arguments but it looks like it only uses them for jpeg load, not save.

But also from the source (plug-ins/file-jpeg/jpeg.c), it looks like
it decides whether to save a thumbnail from the "jpeg-save-options"
parasite's save_exif property. So what you could try is load that
parasite from the image you're about to save, turn off save_exif,
call file-jpeg-save. Then tou can restore the old parasite afterward,
or not, depending on what you're doing with the image.

        ...Akkana



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]