Post Reply 

Convert to RGB then to Indexed Color

Jul 27, 2012, 19:12
Post: #1
Convert to RGB then to Indexed Color
I am trying to save myself a lot of extra clicking as I have to modify several hundred images. In order to do what I need to, I have to convert my image to RGB and then convert it to Indexed color.

I am trying to save myself some clicks by making a script-fu script to do the work. Regretfully I have little understanding of the script-fu language and the script errors telling me there are not enough elements to register it. Here is what I have:

(define (ReindexColors)
(gimp-image-convert-rgb image)
(gimp-image-convert-indexed image dither-type palette-type num-cols alpha-dither remove-unused palette)
)
( script-fu-register
"ReindexColors")

Can anyone assist me?
Find all posts by this user
Quote this message in a reply
Jul 28, 2012, 17:51
Post: #2
RE: Convert to RGB then to Indexed Color
Thanks for your reply. I ended up finishing the work off by hand. I would still like to learn more about the proper file structure for a script-fu script. Can anyone point me to a reference?

Looking at examples without an explanation does little to help me understand the elements needed in the file.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Color menuitems in script or plugin Barbie 4 610 Sep 29, 2014 09:51
Last Post: paynekj
  Script fu and Color to alpha john 4 647 Sep 20, 2014 08:46
Last Post: rich2005
  Easy Color gfb 1 592 May 4, 2014 02:05
Last Post: gfb
  'do not write color space information' in script-fu eab 0 544 Aug 13, 2013 10:03
Last Post: eab
  Color Balance Midi Lessbones 2 1,101 Dec 24, 2012 20:25
Last Post: Lessbones

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS