Commit Graph

3537 Commits

Author SHA1 Message Date
Michael Natterer 77dac3ea60 Bug 555562 - GIMP should ask before applying working space profile
Get rid of the "configurable RGB working space profile".

Instead, turn GimpColorConfig's "rgb-profile" property into a
"Preferred RGB profile" thing that is only a hint and never used
without explicit user interaction. Present it next to the built-in
profile in the profile combo boxes and call it "Preferred" in the
prefs dialog and its tooltip.

Most importantly, don't use it as the image's profile when the image
is not tagged with a profile. Untagged images are now always in the
sRGB or linear RGB built-in color spaces.

This commit reduces the "Apply color profile" dialog on file import to
a simple "Convert to built-in RGB", but that dialog is about to be
moved to the core and improved anyway.
2015-08-20 16:02:22 +02:00
Michael Natterer 1d37c67879 plug-ins: use the GimpColorProfile API instead of the "icc-profile" parasite 2015-08-20 11:15:26 +02:00
Michael Natterer fa5d28aad3 plug-ins, pdb: remove "set" and "set-rgb" from the lcms plug-in
and add PDB compat procedures.
2015-08-05 01:03:33 +02:00
Michael Natterer 4034157774 plug-ins: remove the "set" and "apply" dialogs from the lcms plug-in
The "apply working space profile" dialog is still there.
2015-08-04 22:45:02 +02:00
Michael Natterer 5672e80ea1 libgimpwidgets: port GimpColorProfileStore and -ComboBox to GFile
and deprecate the old filename-based API. Port everything to use the
new GFile functions.
2015-08-01 16:20:14 +02:00
João S. O. Bueno 7829177e3c plug-ins: Apply the context-background color on exporting to pdf
PDF files have no transparency, still, transparent areas of
exported images would always display white, regardless of the
current background color.
(The misbehavior was found while checking BUG #752819,
 but that is a cairo issue and is not fixed by this)
2015-07-25 03:26:56 -03:00
Michael Natterer 0693298d63 libgimpcolor, *: change all GimpColorConfig getters to return const gchar*
instead of a gchar* which has to be freed. Cache all the strings in
the GimpColorConfig instance.
2015-07-12 14:10:18 +02:00
Michael Natterer c102dde92b libgimpcolor, *: change GimpColorProfile to be a GObject
it used to be a typedef to gpointer and actually was a cmsHPROFILE.

Change its API to be more "standard", remove the public close()
function. The object caches both the cmsHPROFILE and the data/length
ICC blob, so conversions between the two become obsolete (simply call
get_lcms_profile() or get_icc_profile()).

Adapt everything to the new API, but port it in a naive way for now,
the code doesn't take advantage of the new possibilities yet (like
refcounting).
2015-07-10 22:53:59 +02:00
Massimo Valentini f72f8f20e5 Bug 751089: Part PNG files are not opened properly 2015-06-30 19:42:07 +02:00
Thomas Manni 82223783a3 plug-ins, pdb: remove the bump-map plug-in and add 2 PDB compat procs 2015-06-30 12:02:48 +02:00
Thomas Manni 3436ae4674 plug-ins, pdb: remove the displace plug-in and add 2 PDB compat procs 2015-06-30 10:02:28 +02:00
Michael Natterer ba1318dda9 app, menus, plug-ins: add new Submenu Image -> Color Management
and move the color profile menu entries there. Add a mapping so 3rd
party plug-ins get moved to the new location automatically.

Also, add a separator after "Duplicate" and move the "Transform"
submenu to the top of the group that has "Scale", "Resize" etc.
2015-06-15 13:20:04 +02:00
Thomas Manni 769bc933d4 plug-ins, pdb: remove the wind plug-in and add a PDB compat proc 2015-06-11 11:31:36 +02:00
Michael Natterer f279fd02da plug-ins: use gimp_image_convert_color_profile() in lcms.c 2015-06-10 02:05:14 +02:00
Michael Natterer d1102d2be9 pdb, plug-ins: remove two procedures from lcms.c and add PDB compat procs
The lcms plug-in is on its way out: add compat procedures implementing
plug-in-icc-profile-info and plug-in-icc-profile-file-info and remove
that code from lcms.c.
2015-06-07 12:52:37 +02:00
Michael Natterer 0d01cfd56b plug-ins: use gimp_image_get_effective_color_profile() in the lcms plug-in 2015-06-07 01:58:10 +02:00
Michael Natterer 87cfbd8d21 plug-ins: use gimp_image_set_color_profile() in the lcms plug-in 2015-06-06 17:05:00 +02:00
Michael Natterer 5efab4c99b plug-ins: use gimp_image_get_color_profile() in the lcms plug-in 2015-06-05 13:21:56 +02:00
Michael Natterer 3565b33019 libgimpconfig: rename the new GimpColorConfig profile accessor functions
gimp_color_config_get_foo_profile() -> get_foo_color_profile()

because the old names clash with possible future accessors for the raw
filename properties.
2015-06-03 09:57:34 +02:00
Michael Natterer 4910c28957 libgimpcolor: rename the gimp_lcms_*() functions to gimp_color_profile_*()
because it doesn't make sense to call the typedef GimpColorProfile
but the function namespace gimp_lcms_*().
2015-06-03 09:41:23 +02:00
Michael Natterer 08b19a9bbc plug-ins: minor simplifications because GimpColorConfig has an API now 2015-05-26 08:09:29 +02:00
Øyvind Kolås 7e6320497e follow gegl api changes from commit af5361ca8d, with an abyss policy argument
to gegl_buffer_copy.
2015-05-25 01:27:31 +02:00
Michael Natterer f939818c4d plug-ins: use gimp_lcms_get_format() in the lcms plug-in 2015-05-08 12:53:43 +02:00
Michael Natterer 6c800db1cc Use the newly added profile utility functions all over the place 2015-05-06 16:38:57 +02:00
Michael Natterer b52c0657ae plug-ins: use the image's name for the metadata dialog's title
not its URI's basename. The name is the same string that is shown in
the image window title.
2015-05-02 16:31:36 -04:00
Michael Natterer e6703aa6b8 plug-ins, pdb: remove the papertile plug-in and add a PDB compat proc 2015-04-30 17:18:01 -04:00
Michael Natterer bc4cf9918f Bug 673501 - Issue with Overlay
GIMP's OVERLAY mode was identical to SOFTLIGHT. This commit fixes the
issue and introduces a NEW_OVERLAY mode and enum value.

- change gimp:overlay-mode to be a real (svg-ish) overlay mode
- when compositing, map OVERLAY to gimp:softlight-mode
- when compisiting, map NEW_OVERLAY to gimp:overlay-mode
- bump the XCF version when NEW_OVERLAY is used
- map OVERLAY to SOFTLIGHT when loading and saving XCF
- map OVERLAY to softlight in all PDB setters
- map OVERLAY to softlight when deserializing a GimpContext
- change all paint mode menus to show an entry for NEW_OVERLAY
  instead of OVERLAY
- change PSP, PSD and OpenRaster to use NEW_OVERLAY

These changes should (redundantly) make sure that no OVERLAY enum
value is used in the core any longer because it gets mapped to
SOFTLIGHT at all entry points, with the downside of introducing a
setter/getter asymmetry when OVERLAY was set in a PDB api.
2015-04-29 13:32:58 -04:00
David Gowers 97bbd6330d Bug 747389 - Adjust maximum zoom for animation-play plugin up slightly
Change maximum zoom from 300% to 400%, improves usability for sprite
or tile animations.
2015-04-27 23:28:59 -04:00
Michael Natterer e1baaa0677 Bug 742821 - Grayscale-mode image malformed when exported as planar raw image data
Fix saving of planar data by taking the actual number of components of
the drawable into account, instead of always assuming 3 (RGB).
2015-03-04 22:32:07 +01:00
Michael Natterer 573f0f69bb plug-ins, pdb: remove the edge plug-in and add a PDB compat procedure 2015-03-03 23:18:53 +01:00
Elle Stone 783bbab8a8 plug-ins: fix lcms.c plug-in half conversion 2015-02-27 19:14:11 +01:00
Michael Natterer a0398e5028 configure.ac, plug-ins: require lcms >= 2.6 and remove #ifdef from lcms.c 2015-02-21 00:33:37 +01:00
Mukund Sivaraman a51ead0aa5 file-gegl: Fix typo 2015-02-18 13:46:22 +05:30
Mukund Sivaraman 09f64866c2 file-gegl: Add OpenEXR saving through file-gegl 2015-02-18 13:40:34 +05:30
Michael Natterer 6a079b980b plug-ins: format prototypes in file-gif-save 2015-02-15 22:52:37 +01:00
Michael Natterer b856a8ba76 plug-ins, pdb: remove the value-propagate plug-in and add PDB compat procedures 2015-02-08 23:09:06 +01:00
Michael Natterer c2371a2de9 app: implement Dilate and Erode as wrappers around gegl:value-propagate
Add them to the "drawable" actions. Remove menu registration for
the value-propagate plug-in's dilate and erode procedures.
2015-02-08 19:56:45 +01:00
Massimo Valentini a215fbda56 Bug 681895: PDF export does not save fonts properly
Set the resolution of the PangoFontMap from which the
PangoContext is created, set cairo font options only
on the PangoContext, explicitely set wrap mode and
do not force a layout height.
2015-01-28 19:31:32 +01:00
Mukund Sivaraman 9ef4d6c061 file-compressor: Fix xz's mime magic 2015-01-22 20:50:06 +05:30
Michael Natterer 9be37aaa91 plug-ins, pdb: remove the diffraction plug-in and add a PDB compat procedure 2015-01-21 22:51:49 +01:00
Mukund Sivaraman 932401e051 file-pnm: Don't write comments into PFM files 2015-01-21 15:24:22 +05:30
Mukund Sivaraman 2b4152037d file-tiff-load: Fix rowstride for edge tiles (#743034 comment #3)
The following images demonstrate the issue:

tiger-75-gray-jpg.tiff
tiger-75-rgb-jpg.tiff
2015-01-21 09:36:36 +05:30
Mukund Sivaraman 51e4491fbf file-pnm: Add support for saving PFM (portable floatmap) files in color and gray 2015-01-20 21:44:06 +05:30
Mukund Sivaraman b6095b6fa5 file-pnm: Fix direction of progressbar during load ;) 2015-01-20 21:07:59 +05:30
Mukund Sivaraman 19f4843c66 file-pnm: Bump rate of progress update when saving 2015-01-20 21:03:24 +05:30
Mukund Sivaraman c05853885a file-pnm: Pass format to gegl_buffer_get() to fix saving from other formats 2015-01-20 21:00:08 +05:30
Mukund Sivaraman 013e943b6c file-pnm: Wrap to 80 columns 2015-01-18 06:55:56 +05:30
Tobias Ellinghaus 1c283737e5 plug-ins: add PFM reading support to file-pnm
Thanks muks for cleaning this up
2015-01-16 15:37:24 +01:00
Michael Natterer b87d97ae68 plug-ins, pdb: remove the lens-flare plug-in and add a PDB compat procedure 2015-01-08 23:39:03 +01:00
Mukund Sivaraman ddda6a15c3 file-tga: Use the colormap origin / first entry index field 2014-12-20 23:24:20 +05:30