RSS/Atom feed Twitter
Site is read-only, email is disabled

tone mapping: gimp vs gegl CLI

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

tone mapping: gimp vs gegl CLI Matthew Woehlke via gimp-user-list 07 Aug 19:47
  tone mapping: gimp vs gegl CLI Pat David via gimp-user-list 09 Aug 13:40
   tone mapping: gimp vs gegl CLI Matthew Woehlke via gimp-user-list 09 Aug 14:48
  tone mapping: gimp vs gegl CLI Matthew Woehlke via gimp-user-list 10 Aug 16:18
Matthew Woehlke via gimp-user-list
2018-08-07 19:47:42 UTC (over 5 years ago)

tone mapping: gimp vs gegl CLI

I want to apply mantiuk06 to a really big image¹. However, using the GEGL CLI, I get very different results than when I apply the filter from within gimp as compared to using the GEGL CLI. See attached image: left is original, middle is mantiuk06 applied from within gimp, right is mantiuk06 applied via GEGL CLI.

What is gimp doing differently from GEGL CLI, and is there a way to get the gimp results with the GEGL CLI?

(¹ ...for which I need a custom build, due to https://gitlab.gnome.org/GNOME/gegl/issues/94, and I'd prefer to not have to build my own gimp also.)

Matthew
Pat David via gimp-user-list
2018-08-09 13:40:42 UTC (over 5 years ago)

tone mapping: gimp vs gegl CLI

Hi Matthew!

The list strips images. Could you host he image somewhere and link it? On Wed, Aug 8, 2018 at 1:46 PM Matthew Woehlke via gimp-user-list < gimp-user-list@gnome.org> wrote:

I want to apply mantiuk06 to a really big image¹. However, using the GEGL CLI, I get very different results than when I apply the filter from within gimp as compared to using the GEGL CLI. See attached image: left is original, middle is mantiuk06 applied from within gimp, right is mantiuk06 applied via GEGL CLI.

What is gimp doing differently from GEGL CLI, and is there a way to get the gimp results with the GEGL CLI?

(¹ ...for which I need a custom build, due to https://gitlab.gnome.org/GNOME/gegl/issues/94, and I'd prefer to not have to build my own gimp also.)

-- Matthew
_______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list

https://patdavid.net
GPG: 66D1 7CA6 8088 4874 946D  18BD 67C7 6219 89E9 57AC
Matthew Woehlke via gimp-user-list
2018-08-09 14:48:40 UTC (over 5 years ago)

tone mapping: gimp vs gegl CLI

On 2018-08-09 09:40, Pat David via gimp-user-list wrote:

On Wed, Aug 8, 2018 at 1:46 PM Matthew Woehlke wrote:

I want to apply mantiuk06 to a really big image¹. However, using the GEGL CLI, I get very different results than when I apply the filter from within gimp as compared to using the GEGL CLI. See attached image: left is original, middle is mantiuk06 applied from within gimp, right is mantiuk06 applied via GEGL CLI.

What is gimp doing differently from GEGL CLI, and is there a way to get the gimp results with the GEGL CLI?

(¹ ...for which I need a custom build, due to https://gitlab.gnome.org/GNOME/gegl/issues/94, and I'd prefer to not have to build my own gimp also.)

The list strips images. Could you host he image somewhere and link it?

Well, that seems rather dumb for a list about a graphics program :-). But anyway, as I'd side-tracked the aforementioned related GEGL issue, where I think I also got an answer (still need to check it), the image can be found at
https://gitlab.gnome.org/GNOME/gegl/uploads/e1e40b302523405d10f1234eec1edbeb/roses.png.

Matthew

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Matthew Woehlke via gimp-user-list
2018-08-10 16:18:31 UTC (over 5 years ago)

tone mapping: gimp vs gegl CLI

On 2018-08-07 15:47, Matthew Woehlke via gimp-user-list wrote:

I want to apply mantiuk06 to a really big image. However, using the GEGL CLI, I get very different results than when I apply the filter from within gimp as compared to using the GEGL CLI. See [1]: left is original, middle is mantiuk06 applied from within gimp, right is mantiuk06 applied via GEGL CLI.

What is gimp doing differently from GEGL CLI, and is there a way to get the gimp results with the GEGL CLI?

[1] https://gitlab.gnome.org/GNOME/gegl/uploads/e1e40b302523405d10f1234eec1edbeb/roses.png

To forward Massimo's answer from
https://gitlab.gnome.org/GNOME/gegl/issues/94, it seems gimp (2.8) and GEGL CLI disagree about whether the image is in a linear or gamma-corrected color space, and one is adding an implicit conversion.

While this is an "improvement" for some operations (for mantiuk06, it's hard to argue that the GEGL result isn't more "correct", although stylistically I prefer the "wrong" result in some cases), for many others it ranges from dubiously, to *definitely*, worse. In particular, stress tends to produce a washed-out result. (I mention this mainly because it is my impression that gimp 2.10 behaves the same was as GEGL CLI, though it sounds as if there is an option to control this. PLEASE KEEP THAT OPTION!)

At any rate, the literal answer to my question is:

gegl -o \ cast-format input-format="R'G'B' u8" output-format="RGB u8" \ \
cast-format input-format="RGB u8" output-format="R'G'B' u8"

...which does indeed produce the same results as gimp (2.8). \o/

Matthew