The GNU Image Manipulation Program

Forked from GNOME / GIMP

  • Jehan's avatar
    plug-ins: follow the assigned profile TRC. · 417f2c87
    Jehan authored
    GIMP should not convert assigned profile to sRGB just because we stored
    as linear on the XCF. In other words, we should not look at the image
    precision to decide whether to export as linear (previously only 8-bit
    linear images), but at the profile TRC. There are basically 3 cases:
    (1) We don't save a profile, then convert to sRGB whatever the source
    precision (because readers would assume sRGB for a no-profile jpeg).
    (2) We save the default profiles: convert to sRGB because it's usually
    a better choice for 8-bit formats and even working at 32-bit float
    *linear* doesn't mean you want to export as 8-bit int *linear*. As the
    image creator made no explicit export choice, we make an acceptable
    default one.
    (3) We save an explicitly assigned profile: keep the profile TRC, don't
    convert!
    
    Note that this apparently won't work perfectly right now, as GIMP
    replaces the original TRC with the linear default TRC when converting to
    linear. So the expected TRC is lost in such case when you have not
    explicitly reset the correct profile. Yet this is on GIMP side and this
    part of the issue should be fixed with the space invasion merge. For
    now, this is how the plug-in should work.
    
    This is based on my late discussion with Ell. Please everyone, and Ell
    especially, review! :-)
    
    (cherry picked from commit c5f7bac2ba2121636bbf84d5e4af4d11e98fa511)
    417f2c87
Name
Last commit
Last update
.gitlab Loading commit data...
app Loading commit data...
app-tools Loading commit data...
build Loading commit data...
cursors Loading commit data...
data Loading commit data...
desktop Loading commit data...
devel-docs Loading commit data...
docs Loading commit data...
etc Loading commit data...
icons Loading commit data...
libgimp Loading commit data...
libgimpbase Loading commit data...
libgimpcolor Loading commit data...
libgimpconfig Loading commit data...
libgimpmath Loading commit data...
libgimpmodule Loading commit data...
libgimpthumb Loading commit data...
libgimpwidgets Loading commit data...
m4macros Loading commit data...
menus Loading commit data...
modules Loading commit data...
pdb Loading commit data...
plug-ins Loading commit data...
po Loading commit data...
po-libgimp Loading commit data...
po-plug-ins Loading commit data...
po-python Loading commit data...
po-script-fu Loading commit data...
po-tags Loading commit data...
po-tips Loading commit data...
po-windows-installer Loading commit data...
themes Loading commit data...
tools Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.kateconfig Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
ChangeLog.pre-2-0 Loading commit data...
ChangeLog.pre-2-2 Loading commit data...
ChangeLog.pre-2-4 Loading commit data...
ChangeLog.pre-2-6 Loading commit data...
ChangeLog.pre-git Loading commit data...
HACKING Loading commit data...
INSTALL.in Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NEWS.pre-2-0 Loading commit data...
NEWS.pre-2-10 Loading commit data...
NEWS.pre-2-2 Loading commit data...
NEWS.pre-2-4 Loading commit data...
NEWS.pre-2-6 Loading commit data...
NEWS.pre-2-8 Loading commit data...
README Loading commit data...
README.i18n Loading commit data...
acinclude.m4 Loading commit data...
authors.dtd Loading commit data...
authors.xml Loading commit data...
authors.xsl Loading commit data...
authors4gimp-web.xsl Loading commit data...
autogen.sh Loading commit data...
config.h.win32 Loading commit data...
configure.ac Loading commit data...
gimp-zip.in Loading commit data...
gimp.doap Loading commit data...
gimp.pc.in Loading commit data...
gimpthumb.pc.in Loading commit data...
gimpui.pc.in Loading commit data...