Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mass image color-transformation program?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Mon Feb 14, 2005 1:52 am    Post subject: Mass image color-transformation program? Reply with quote

I need to change the color on around 20 .svg images... how can I do that?

more specifically, I would like to do the following: sets of operations:

1. change hue, saturation, & luminosity
2. grayscale, invert (not transparent parts though), & luminosity (maybe)

Is there some nice command-line program that can accept wildcards? if there isn't, I can make a small script...
_________________
Check out my...
Website: (CURRENTLY DOWN) http://sledgehammer.ath.cx
Forum: (ALSO CURRRENTLY DOWN) http://sledgehammer.ath.cx/forum/
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Mon Feb 14, 2005 7:16 pm    Post subject: Reply with quote

I haven't used it, but I think that ImagMagick is designed precisely to do this.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Mon Feb 14, 2005 9:04 pm    Post subject: Reply with quote

You're going to have a hard time doing this. Were they rasture images of some sort you might be able to do it. SVG is a completely different animal though. The only thing I can think of is if you can get script/program that can parse the XML from the SVG and automate changing perspecified color values found in the file. That is no easy task though.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Mon Feb 14, 2005 11:04 pm    Post subject: Reply with quote

FishB8 wrote:
You're going to have a hard time doing this. Were they rasture images of some sort you might be able to do it. SVG is a completely different animal though. The only thing I can think of is if you can get script/program that can parse the XML from the SVG and automate changing perspecified color values found in the file. That is no easy task though.


uh...

I've (rather painstakingly) converted them to png...

can I color transform them now?
_________________
Check out my...
Website: (CURRENTLY DOWN) http://sledgehammer.ath.cx
Forum: (ALSO CURRRENTLY DOWN) http://sledgehammer.ath.cx/forum/
Back to top
View user's profile Send private message
teknomage1
Veteran
Veteran


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Tue Feb 15, 2005 1:57 am    Post subject: Reply with quote

Should be able to use the Image Magick command mogrify -modulate to achieve the results you're looking for. At this point though wouldn't it be simpler to just do it by hand? (Not that I wouldn't be trying to automate it myself)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum