It is currently Tue Jul 23, 2024 10:29 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 10:43 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
quoted from Lylejk
"ImageMagicK has some pretty powerful capabilities and to be able to call them within GIMP would be a great thing"
by googling, I just detected only that one example of a (python) script calling ImageMagick (for resizing), Lylejk was referring to in the quoted sentence .
Are there other examples of calling ImageMagick from inside a Gimp script?
maybe from an .scm script?

Thanks

_________________
"Where am I ?"


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 10:55 am  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I see ofnuts is looking here, so I expect to be Ninja'd at any moment ;)

I'll just say that you couldn't call ImageMagick from an scm script as script-fu has no way to make system calls.

Kevin


Top
 Post subject: Re: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 11:57 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
Me, I mostly wonder what is done in IM that cannot be done in Gimp (outside of batch scripting).

_________________
Image


Top
 Post subject: Re: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 12:40 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I came into this field while looking towards a possibility of changing color in EACH pixel of an image BASED on the relationship between a "MASTER" input color and a "MASTER" output color.
Let say (taking from what I read):
1 - input master pixel is (RGB) R:141 G:198 B:63
2 - output master pixel is (RGB) R:231 G:159 B:70
what IM seems to be able to accomplish is this:
A - (obviously) the master input pixel is changed to the indicated output color values, but then
B - EACH other pixel in the image is changed proportionally, that is:
b1 - the RED component of each pixel is modified to receive a value of 231/141 of the existing red value
b2 - the GREEN component of each pixel is modified to receive a value of 159/198 of the existing green value
b2 - the BLUE component of each pixel is modified to receive a value of 70/63 of the existing blue value

do you know about such a possibility in GIMP? (I don't, but I'm not so expert)

thanks

_________________
"Where am I ?"


Top
 Post subject: Re: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 1:25 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
b1:b2:b3 is exactly what Colors>Component>Channel Mixer is all about... and much more.

_________________
Image


Top
 Post subject: Re: GIMP and IMAGEMAGICK
PostPosted: Fri Jun 13, 2014 1:51 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
That's new for me (never really understood).
I'll make exercises on that
Thanks Ofnuts!

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Animated gif (HQ) using ImageMagick.

16



* Login  



Powered by phpBB3 © phpBB Group