bf10da29fa
app: remove GError** argument from gimp_image_get_color_profile()
...
we validate everything when setting it, so this function always
returns either a valid profile, or NULL.
2015-06-17 00:45:43 +02:00
8676fba635
app: add gimp_image_get,set,validate_icc_profile()
...
which use the ICC profile's data/size, without parasites involved.
2015-06-17 00:38:49 +02:00
ee2f9ee846
app: rename gimp_image_get,set,validate_icc_profile() to _icc_parasite()
...
to make sure we don't have some _icc_profile() functions that deal
with raw data/size and some that deal with GimpParasite.
2015-06-16 23:56:53 +02:00
0ceed29ce8
app: set the image's color profile in gimp_image_convert_color_profile()
...
but never set it if the image got converted to a built-in profile.
Also remove the "icc-profile-name" parasite.
2015-06-10 02:04:14 +02:00
1ade7ffee5
app: add gimp_image_convert_color_profile()
...
which converts an image to another color profile. Currently unused.
2015-06-10 01:36:19 +02:00
685f883f3e
app: add gimp_image_validate_color_profile()
...
and use it from gimp_image_set_icc_profile() and from
gimp_image_set_color_profile().
2015-06-09 18:55:07 +02:00
acb76a4d2a
app: fix setting a NULL profile with gimp_image_set_color_profile()
2015-06-07 01:37:55 +02:00
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
b8eeb9ed00
app: add gimp_image_set_color_profile(), currently unused
...
also remove the fallback-to-colorconfig code from
gimp_image_get_color_profile() and move it to
gimp_image_color_managed_get_icc_profile(), so
gimp_image_get_color_profile() returns NULL if the image has no own
profile.
2015-06-02 23:25:52 +02:00
e06a620d11
app: rename gimp_image_get_profile() to _get_color_profile()
2015-05-30 00:47:13 +02:00
abef515ef8
app: use gimp_color_config_get_rgb_profile() in gimp_image_get_profile()
2015-05-13 00:42:31 +02:00
b7863269f0
libgimpcolor: change gimp_lcms_profile_open_from_file() from filename to GFile
...
and change most of the lcms plug-in to using GFile too.
2014-07-04 23:57:27 +02:00
614c61a3dd
Don't #include <glib.h> before <lcms.h>
...
The include claimed to be because of "inline" in the lcms header, but
that was probably lcms1, since there is no trace of inline in the
lcms2 header.
2014-04-10 20:48:22 +02:00
32e47cf70d
libgimpcolor: add gimp_lcms_profile_is_equal()
...
and remove all of our own MD5 digest code and API. is_equal() uses
lcms' own MD5 API which I missed before. Thanks Elle for pointing that
out :)
2014-03-29 10:40:47 +01:00
db9f7c195a
app: remove sanity checks on the content of the 'icc-profile' parasite
...
We now validate the parasite at attach time.
2014-03-23 21:19:06 +01:00
4f10ff3ad4
app: validate 'icc-profile' parasites before attaching them
...
The must be persistent and undoable and contain an RGB ICC profile.
2014-03-23 19:46:09 +01:00
89e0c04d13
app: add gimp_image_get_profile() which returns a cmsHPROFILE
2014-03-17 02:29:46 +01:00