It is currently Sat Jun 20, 2026 1:06 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Assign ICC Color Profile from procedure
PostPosted: Thu Nov 05, 2020 3:44 pm  (#1) 
Offline
New Member

Joined: Jul 06, 2018
Posts: 4
Hi, I write plugin in C. I need to run this menu (Image - Color Management - Assign Color Profile) from procedure Script-Fu or from function libgimp.
I think (gimp-image-set-color-profile-from-file 1 "/home/master/.config/GIMP/2.10/plug-ins/1.icc") this is what I need.
> (gimp-image-set-color-profile-from-file 1 "/home/master/.config/GIMP/2.10/plug-ins/1.icc")
Error: Procedure execution of gimp-image-set-color-profile-from-file failed: Operation not supported

How does I need Assign ICC Color Profile?


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: Assign ICC Color Profile from procedure
PostPosted: Thu Nov 05, 2020 4:03 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1449
Check this out starting at line 431?
https://fossies.org/linux/gimp/app/pdb/image-color-profile-cmds.c

Here are the includes for the profile cmds. Maybe you are missing some.
https://fossies.org/dox/gimp-2.10.22/image-color-profile-cmds_8c.html

Not an expert C coder so not able to help.


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group