It is currently Fri Jun 21, 2024 12:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 88 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 10:08 am  (#81) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
Please visit this page to learn how to convert RGB to CMYK in GEGL
viewtopic.php?f=9&t=20652&start=60#p288042


Last edited by contrast_ on Sun Feb 18, 2024 10:31 am, edited 3 times in total.

Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 10:09 am  (#82) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
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


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 10:12 am  (#83) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
ok, it worked for real. I need to retract the other two post.

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


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 10:41 am  (#84) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
@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?


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 10:47 am  (#85) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
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 305 times ]


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 2:12 pm  (#86) 
Offline
GimpChat Member

Joined: Dec 28, 2023
Posts: 34
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.


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Sun Feb 18, 2024 4:23 pm  (#87) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
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.


Top
 Post subject: Re: GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugi
PostPosted: Mon Apr 29, 2024 11:39 am  (#88) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1440
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 123 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 123 times ]



After inpaint

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


Top
Post new topic Reply to topic  [ 88 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Is it possible to make a plugin that runs bash scripts on a clipboard

1

No new posts Please make a python plugin to combine my GEGL filters with GMIC

1

No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Attachment(s) GEGL Background on top (first public GEGL plugin of 2024)

0

No new posts GEGL plugin that outlines with a bevel and more

0



* Login  



Powered by phpBB3 © phpBB Group