mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00

… is set. The order for thumbnail creation in gimp_imagefile_create_thumbnail() is now: 1. If there is a GimpThumbnailProcedure, it is run first. 2. Otherwise we check if a thumbnail is in the metadata. 3. As last resort, we just load the full image. Part of the fix was to copy gimp_image_metadata_load_thumbnail() into the core code. I have been wondering if we could not drop the same function from libgimp and remove the GimpThumbnailProcedure frome file-jpeg, since it just uses the metadata thumbnail and it is the only plug-in using this code. Also it is much faster to run this in core and it's generic function which makes thumbnail loading from Exif data working for every format supported by Exiv2. On the other hand, the file-jpeg thumbnail procedure also gathers a few more useful information, such as the color model (in a reliably manner, since based on JPEG header, unlike from metadata which may be wrong).
38 lines
1.7 KiB
C
38 lines
1.7 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattisbvf
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GIMP_IMAGE_ROTATE_H__
|
|
#define __GIMP_IMAGE_ROTATE_H__
|
|
|
|
|
|
void gimp_image_rotate (GimpImage *image,
|
|
GimpContext *context,
|
|
GimpRotationType rotate_type,
|
|
GimpProgress *progress);
|
|
|
|
void gimp_image_import_rotation_metadata (GimpImage *image,
|
|
GimpContext *context,
|
|
GimpProgress *progress,
|
|
gboolean interactive);
|
|
|
|
void gimp_image_apply_metadata_orientation (GimpImage *image,
|
|
GimpContext *context,
|
|
GimpMetadata *metadata,
|
|
GimpProgress *progress);
|
|
|
|
|
|
#endif /* __GIMP_IMAGE_ROTATE_H__ */
|