RSS/Atom feed Twitter
Site is read-only, email is disabled

turning off thumbnail in jpeg saves; deleting a thumbnail?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

turning off thumbnail in jpeg saves; deleting a thumbnail? Gary Aitken 19 Sep 23:20
  turning off thumbnail in jpeg saves; deleting a thumbnail? Liam R E Quin 20 Sep 00:23
   turning off thumbnail in jpeg saves; deleting a thumbnail? Akkana Peck 21 Sep 05:03
Gary Aitken
2012-09-19 23:20:05 UTC (over 12 years ago)

turning off thumbnail in jpeg saves; deleting a thumbnail?

Is there any way to turn off the jpeg thumbnail when writing out a file using
file-jpeg-save?
Otherwise, a small web image can be large when generated by copying from an existing image which has a thumbnail. In my case, the source image is coming in via ufraw.

It's not clear to me whether the thumbnail I'm getting is created by GIMP or sent to it from ufraw.
If it's being created by gimp,
is there a way to delete the thumbnail from an image?

Or does one have to create a new empty image and copy only the active layer from the existing image to it? Will that even solve the problem?
Problem with creating a new image is all the exif data, etc, is lost.

Thanks,

Gary

Liam R E Quin
2012-09-20 00:23:45 UTC (over 12 years ago)

turning off thumbnail in jpeg saves; deleting a thumbnail?

On Wed, 2012-09-19 at 17:20 -0600, Gary Aitken wrote:

If it's being created by gimp,
is there a way to delete the thumbnail from an image?

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.

Liam

Akkana Peck
2012-09-21 05:03:34 UTC (over 12 years ago)

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