Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
perl script
#1
Hi,

Does someone please know how to change a color in a gimp image, but doing this through perl script ?

Changing a channel color would be prefect !

I don't find exactly this information on metacpan (Gimp ; Gimp:Fu).


Regards  Smile

Aka
Reply
#2
(09-16-2021, 09:39 AM)aka Wrote: ..snip..Does someone please know how to change a color in a gimp image, but doing this through perl script ?
Changing a channel color would be prefect !

You are not going to get a gimp perl script to work without a gimp-perl module. The last time I used this was with PClinuxOS maybe 10 or 12 years ago, even then it was unusual to keep that package in the repo.  Really it went out with Gimp 2.2 / 2.4

If you want to try your hand at compiling then the source is here: https://github.com/GNOME/gimp-perl Edit: interesting, updated for Gimp 2.10

All sorts of non-perl ways to change colours in an image, give details and I am sure there will be recomendations.
Reply
#3
Thanks,

I know now how to get a channel :

$image->get_channels

Do you know how to change the color of this channel, please ? I don't find it..

Best regards
Reply


Forum Jump: