2007-12-30 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpegqual.c: use G_OPTION_REMAINING to access the
filenames passed as command-line arguments.
svn path=/trunk/; revision=24477
2007-12-02 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c (jpeg_load_resolution): only set the
resolution if X_density and Y_density are not zero. Otherwise
the
default resolution would be used anyway and the user sees an
annoying and confusion warning.
svn path=/trunk/; revision=24251
2007-11-09 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimphelpui.[ch]: use the new tooltip API instead
of the old deprecated one. Removed _gimp_help_init(). Remember
whether tooltips are enabled or not in a local variable that can
only be altered at startup time and not after. The API now expects
markup instead of plain text which might cause warnings and
perhaps needs to be changed.
* libgimpwidgets/gimpwidgets-private.c: don't call _gimp_help_init().
* app/config/gimpguiconfig.c: made show-tooltips a
GIMP_CONFIG_PARAM_RESTART property.
* app/widgets/gimptoolbox-color-area.c: don't add the tooltip here...
* app/widgets/gimptoolbox.c: ...but here (as for all other
indicators). Also escape '&' properly because we now use markup.
* app/tools/gimpselectionoptions.c
* app/widgets/gimpeditor.c
* app/widgets/gimpwidgets-utils.c: print modifiers and
shortcuts in bold instead of in ().
* app/widgets/gimpcontainertreeview.c: show tooltips on rows if
gimp_viewable_get_description() returns a tip.
* app/dialogs/preferences-dialog.c
* plug-ins/jpeg/jpeg-save.c
* plug-ins/MapObject/mapobject_ui.c
* plug-ins/Lighting/lighting_ui.c
* plug-ins/common/animationplay.c
* plug-ins/common/warp.c: no need to add event boxes just to have
tooltips, the new ones work on all widgets.
svn path=/trunk/; revision=24093
2007-10-23 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpegqual.c: Added hash value for all known
quantization tables in order to detect transposed tables from
rotated images or bad matches coming from different tables with
the same sum.
svn path=/trunk/; revision=23920
2007-10-04 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c (jpeg_load_cmyk_transform): use the
display rendering intent as set in the user's color management
preferences. Use black point compensation if the rendering
intent
is relative colorimetric.
svn path=/trunk/; revision=23722
2007-09-28 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c: moved handling of the CMYK profile
to
a utility function. Respect the user's color management
settings.
svn path=/trunk/; revision=23677
2007-09-27 Sven Neumann <sven@gimp.org>
* configure.in: define HAVE_LCMS if lcms is available.
* plug-ins/jpeg/Makefile.am: link with LIBLCMS.
* plug-ins/jpeg/jpeg-load.c (load_image): when loading a CMYK JPEG
file and it comes with an embedded CMYK profile, use lcms to do
the colorspace conversion.
svn path=/trunk/; revision=23672
2007-09-27 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c (load_thumbnail_image): same change
here. Moved colorspace conversion to a utility function.
svn path=/trunk/; revision=23671
2007-09-27 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c (load_image): get rid of one of the
temporary buffers. We don't need an alpha channel on the preview
layer and we can do the CMYK->RGB conversion in place.
svn path=/trunk/; revision=23670
2007-09-20 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpegqual.c (quant_info): updated the table of
known devices and software, work in progress.
svn path=/trunk/; revision=23595
2007-09-19 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpegqual.c: Re-wrote large parts of the code,
still work in progress: use GOption for command-line options, add
number of quantization tables in QuantInfo, added info for more
sources (devices or software) but not verified yet.
svn path=/trunk/; revision=23589
2007-09-19 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-load.c
* plug-ins/jpeg/jpeg-save.c: ifdef'ed out some debugging
statements so that they show up only in unstable releases.
* plug-ins/jpeg/jpeg.c (run): removed calls to gimp_set_data() and
gimp_get_data() so that changes made to the JPEG save settings for
one file do not affect other files saved later.
svn path=/trunk/; revision=23584
2007-08-29 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-save.[ch]
* plug-ins/jpeg/jpeg.c: change the behavior of the code so that
"Use quality settings from original image" does what it claims,
even if these settings are worse than the user's defaults (note
that the option is not automatically enabled in this case). Also
set the subsampling type when that box is checked.
* plug-ins/jpeg/jpeg-settings.h: formatting.
svn path=/trunk/; revision=23395
2007-08-24 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-save.c (save_dialog): use a label that is
easier to understand. Required code changes will follow later.
svn path=/trunk/; revision=23373
2007-08-24 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-settings.c (jpeg_swap_original_settings): new
function that swaps the vertical and horizontal axis for the saved
subsampling parameters and quantization tables.
* plug-ins/jpeg/jpeg-exif.c (jpeg_exif_rotate): swap the saved
settings when the image is rotated. Fixes bug #466593.
* devel-docs/release-howto.txt: added note about having admin
access to Bugzilla and to the news section on www.gimp.org.
svn path=/trunk/; revision=23370
2007-08-11 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-save.c (save_dialog): use a more
understandable label and a tooltip for the option enabling custom
quantization tables.
svn path=/trunk/; revision=23199
2007-08-10 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg.[ch]
* plug-ins/jpeg/jpeg-save.[ch]: in the JPEG save dialog, removed
the option "Force baseline JPEG" and added the new option "Use
custom quantization tables" to allow resaving a JPEG file with the
same compression settings as the original file. This is useful if
the quantization tables are different from those that can be
created by the IJG JPEG library.
* plug-ins/jpeg/jpeg-settings.[ch]: updated comments, changed the
return type of jpeg_restore_original_tables() because the IJG JPEG
library expects unsigned integers.
svn path=/trunk/; revision=23197
2007-08-02 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpegqual.c: added many options, added a list of
known quantization tables to make comparisons and identification
of JPEG files easier.
svn path=/trunk/; revision=23101
2007-07-27 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-quality.c (jpeg_detect_quality): simplify the
formula so that it returns a slightly lower estimated quality when
there is no exact match with the IJG quantization tables.
svn path=/trunk/; revision=23041
2007-07-27 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg.[ch]
* plug-ins/jpeg/jpeg-save.c (save_dialog): Make the "Save XMP
data" checkbox insensitive if there is no XMP packet to save.
svn path=/trunk/; revision=23019
2007-07-26 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/Makefile.am
* plug-ins/jpeg/jpeg-quality.[ch]
* plug-ins/jpeg/jpeg-settings.[ch]: new files including functions
for detecting the quality setting of existing JPEG files by
analyzing their quantization tables, functions for storing this
quality and other JPEG settings in a parasite, and functions for
restoring these values.
* plug-ins/jpeg/jpeg-load.c (load_image): save the original JPEG
settings in a parasite after reading the JPEG header.
* plug-ins/jpeg/jpeg.c (run): restore the original JPEG settings
if they had been attached to a parasite and if they are better
than the defaults.
* plug-ins/jpeg/jpeg-save.c (save_image): added new type of
subsampling 1x2,1x1,1x1, which is useful for images with height >
width such as rotated images from some cameras.
(save_dialog): added hints about how the subsampling types can be
used, marked these strings as translatable.
* plug-ins/jpeg/jpegqual.c: new utility to report the quality
settings and sampling factors of existing JPEG files.
svn path=/trunk/; revision=23018
2007-07-17 Raphael Quinet <raphael@gimp.org>
Reorganized the way JPEG comments and metadata are loaded.
* plug-ins/jpeg/jpeg-load.c (load_image): sanitize comments
containing invalid UTF-8 instead of discarding them. If there is
more than one EXIF block in a file, merge all of them instead of
keeping only the block that contains a thumbnail image (see also
bug #446809 and bug #358117). Process XMP after EXIF.
* plug-ins/jpeg/jpeg.h: include two null characters as part of the
EXIF header.
* plug-ins/jpeg/jpeg-exif.c: added jpeg_exif_get_orientation(),
removed jpeg_apply_exif_data_to_image() because this is now done
directly in jpeg-load.c.
* plug-ins/jpeg/jpeg-icc.c
* plug-ins/jpeg/jpeg-icc.h: removed jpeg_icc_setup_read_profile()
svn path=/trunk/; revision=22949
2007-07-17 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-exif.c (jpeg_setup_exif_for_save): include
GIMP version number in the EXIF "software" tag. This makes it
easier to debug issues related to metadata.
svn path=/trunk/; revision=22945
2007-07-10 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg.c
* plug-ins/jpeg/jpeg-save.[ch]: fixed an issue with the latest
changes. Now "Load Defaults" does also work if "Save Defaults"
wasn't used before.
svn path=/trunk/; revision=22907
2007-07-09 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg.c (run): when the save procedure is being
called with GIMP_RUN_WITH_LAST_VALS and the image doesn't have
the
"jpeg-save-options" parasite set, show the dialog to give the
user
control over the JPEG encoding parameters.
svn path=/trunk/; revision=22905
2007-07-08 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg.c
* plug-ins/jpeg/jpeg-save.[ch]: applied patch from Etienne which
adds configurable default parameters similar to the PNG save
plug-in.
Addresses bug #63610.
svn path=/trunk/; revision=22895
2007-06-12 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-load.c (load_image): Instead of passing any
file to libexif blindly, check first that some JPEG APP1 marker
contains the EXIF header.
* plug-ins/jpeg/jpeg-exif.c (jpeg_apply_exif_data_to_image):
removed the tests that were checking for the presense of some EXIF
tags such as the EXIF version before deciding if the data should
be processed or not (bug #446809).
svn path=/trunk/; revision=22766
2007-05-06 Sven Neumann <sven@gimp.org>
* configure.in: require libexif >= 0.6.0.
* plug-ins/jpeg/gimpexif.[ch]: removed
gimp_exif_entry_get_value()
which was needed to work with libexif < 0.6.0.
* plug-ins/jpeg/jpeg.c: declare the global ExifData here instead
of in gimpexif.c.
* plug-ins/jpeg/jpeg-exif.c: cosmetics.
svn path=/trunk/; revision=22436
2007-05-06 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-exif.c (jpeg_apply_exif_data_to_image):
only
check for EXIF_TAG_GPS_VERSION_ID if it's defined (see bug
#377917).
This tag was added in libexif 0.6.13.
svn path=/trunk/; revision=22435
2007-05-02 Mukund Sivaraman <muks@mukund.org>
* plug-ins/jpeg/jpeg-exif.c: Check if any other IFDs exist before
rejecting an image's EXIF info. Fixes bug #377917.
svn path=/trunk/; revision=22377
2007-03-31 Michael Schumacher <schumaml@cvs.gnome.org>
* plug-ins/common/svg.c:
* plug-ins/common/tiff.c:
* plug-ins/common/wmf.c:
* plug-ins/jpeg/jpeg-load.c: some file load plug-ins did call
gimp_quit() in their load functions. This aborts the plug-in
instead of returning a GIMP_PDB_EXECUTION_ERROR. The run()
function in each plug-in was already prepared to do this on
errors.
svn path=/trunk/; revision=22212
2007-01-15 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-exif.c (jpeg_exif_rotate_query): ellipsize
the image name displayed below the thumbnail.
svn path=/trunk/; revision=21717
2006-12-22 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-exif.c: added a "Don't ask me again" toggle
to the EXIF rotation query dialog. Store the user's choice in the
"exif-orientation-rotate" parasite.
* devel-docs/parasites.txt: document the new global parasite.