Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 10:08 am

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

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 10:09 am

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

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 10:12 am

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

actual_CMYK.png
actual_CMYK.png (183.98 KiB) Viewed 309 times

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 10:41 am

@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?

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 10:47 am

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

icc_no_difference.png
icc_no_difference.png (32.69 KiB) Viewed 307 times

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 2:12 pm

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.

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Sun Feb 18, 2024 4:23 pm

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.

Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi

Mon Apr 29, 2024 11:39 am

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

Code:
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


Code:
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

pasted_image124.png
pasted_image124.png (775.88 KiB) Viewed 125 times


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


2024-04-29_12-29.png
2024-04-29_12-29.png (213.41 KiB) Viewed 125 times



After inpaint

pasted_image125.png
pasted_image125.png (497.31 KiB) Viewed 125 times
Post a reply