GIMP Chat
http://gimpchat.com/

GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugin
http://gimpchat.com/viewtopic.php?f=9&t=20652
Page 5 of 5

Author:  contrast_ [ Sun Feb 18, 2024 10:08 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Please visit this page to learn how to convert RGB to CMYK in GEGL
viewtopic.php?f=9&t=20652&start=60#p288042

Author:  contrast_ [ Sun Feb 18, 2024 10:09 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

CmykStudent wrote:
contrast_: Cool! As a heads-up, PNG doesn't support CMYK (the CMYK colors would be treated as RGB on export). You would need to export as a TIFF or JPEG if you want the exported file to be treated as CMYK by other programs.


ok I'll use tiff

Author:  contrast_ [ Sun Feb 18, 2024 10:12 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

ok, it worked for real. I need to retract the other two post.

Attachment:
actual_CMYK.png
actual_CMYK.png [ 183.98 KiB | Viewed 311 times ]

Author:  contrast_ [ Sun Feb 18, 2024 10:41 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

@CMYK_Student

This may sound radical but could we see if there is a way to use Image Magick and my bash plugin as a dependency of Gimp to get CMYK preview support?

Author:  contrast_ [ Sun Feb 18, 2024 10:47 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Step two might only have to be done once as I see no difference in rgb icc profiles. This makes automation easier.

Attachment:
icc_no_difference.png
icc_no_difference.png [ 32.69 KiB | Viewed 309 times ]

Author:  CmykStudent [ Sun Feb 18, 2024 2:12 pm ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

contrast_: You should be able to do that already with the soft-proofing features, but you're welcome to compare and contrast with your method.

Author:  contrast_ [ Sun Feb 18, 2024 4:23 pm ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

CmykStudent wrote:
contrast_: You should be able to do that already with the soft-proofing features, but you're welcome to compare and contrast with your method.

I had no idea this feature existed. wow it is much better then what I thought of.

I imported the CMYK icc from Image Magick and I can still edit in soft proof CMYK mode. Said file is here. https://github.com/ImageMagick/ImageMag ... g/cmyk.icm and it is open source and commercially permissible.

Author:  contrast_ [ Mon Apr 29, 2024 11:39 am ]
Post subject:  Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Inpainting (removing) a strawberry by calling GMIC from bash in GIMP 2.99.19


https://github.com/LinuxBeaver/AI_in_Gi ... h/releases

This plugin was used to call GMIC's inpainting tool with GEGL at a set preset by running one of these commands in GEGL bash plugin

gmic /tmp/in.png output /tmp/out3.webp  &&  gmic /tmp/out3.webp fx_inpaint_patch 7,16,0.1,1.2,0,0.05,10,1,255,0,0,255,0,0 -o /tmp/out.png


gmic /tmp/in.png output /tmp/out3.webp  &&  gmic /tmp/out3.webp  fx_inpaint_matchpatch 0,9,10,5,1,255,0,0,255,0,0 -o /tmp/out.png


Remember it doesn't work proper non-destructively so the layer effect has to be merged (made destructive) in 2.99.19 after applying.


Original Image

Attachment:
pasted_image124.png
pasted_image124.png [ 775.88 KiB | Viewed 127 times ]


I paint the strawberry red destructively on a GIMP layer then I run the bash command to call GMIC


Attachment:
2024-04-29_12-29.png
2024-04-29_12-29.png [ 213.41 KiB | Viewed 127 times ]



After inpaint

Attachment:
pasted_image125.png
pasted_image125.png [ 497.31 KiB | Viewed 127 times ]

Page 5 of 5 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/