After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 158190 - add thumbnail loader for JPEG images
add thumbnail loader for JPEG images
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal enhancement
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-13 17:28 UTC by Sven Neumann
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for this (15.64 KB, patch)
2004-11-15 23:28 UTC, Mukund Sivaraman
none Details | Review

Description Sven Neumann 2004-11-13 17:28:39 UTC
A recent addition to the GIMP 2.2 API allows plug-ins to register an additional
procedure to give access to a thumbnail embedded in an image file. The JPEG
format  allows for such thumbnails so it would be nice if the JPEG plug-in would
provide this functionality.
Comment 1 Sven Neumann 2004-11-13 18:23:42 UTC
See also bug #155761 which is closely related and should best be addressed at
the same time.
Comment 2 Mukund Sivaraman 2004-11-15 23:28:02 UTC
Created attachment 33823 [details] [review]
Patch for this

This patch works fine. It is much faster than the full preview already. It
/can/ be speedened up (to be zippy) if there is some way to read the size of
the image from the EXIF in a standard way (not a camera-specific way).

But you can apply this one now.

- Mukund
Comment 3 Sven Neumann 2004-11-16 10:53:21 UTC
Actually I would like to only apply this change if we also make sure that the
thumbnail in the EXIF data is correctly changed when we save a JPEG file.
Otherwise this nice change will cause GIMP to show invalid thumbnail previews
for JPEG files that have been changed using GIMP (see bug #155761).
Comment 4 Mukund Sivaraman 2004-11-16 11:48:31 UTC
Sven, question about this:

Currently the EXIF data is loaded as a parasite (atleast by the JPEG plug-in). I
can't find any other plug-ins which load EXIF data, but they could technically
get this feature at a later date.

Now who has the job of recomputing this thumbnail? Is it the app which does this
before calling the save plug-in? Or is it the plug-in itself? Cause the EXIF
data can be theoretically shared among different file formats.

The way I understand this, we need to have some sort of API to handle EXIF data
for an image, or have the same parasite name and data form ("exif-data") and
have the app modify the thumbnail in that before calling the save plug-in.

Comment 5 Sven Neumann 2004-11-16 12:16:33 UTC
The GIMP core doesn't know anything about EXIF and is not supposed to do. It's
the job of the JPEG plug-in to modify the EXIF thumbnail. It can retrieve the
thumbnail from the core. See my comments to #155761 which is where we should
continue this discussion.
Comment 6 Mukund Sivaraman 2004-11-16 20:40:22 UTC
The patch above has been superceded by the one in bug #155761

Comment 7 Michael Natterer 2004-11-17 01:05:36 UTC
Fixed in CVS:

2004-11-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/jpeg.c: applied (modified) patch from S. Mukund
	which adds EXIF thumbnail loading and saving.
	Fixes bugs #155761 and #158190.