Wholesale replacing of pixel/spot colour in png.jpg/gif
Posted: 2009-09-05T09:07:06-07:00
Hey guys/gals.
I have googled and googled and not found the killer answer.
I have a gif, jpg or png file in which I want to change every pixel that has RGB of say FFD2BB to FFAA44.
Can you point me to the a solution via the command line or perl wrapper? Also would there be a way to convert a range? Say...
Change every FFD2** to FFAA44?
I have millions of these files to change so any batch type tricks appreciated as well.
Now that I think of it I also have another problem.
I have a jpg or png with resolution of say 300 dpi. I want to convert to eps but I seem to loose the resolution according to identify after? I have tried density before/after reading etc but am now stuck. Can anyone help with a command line to change source.png to dest.eps and maintain resolution/DPI header info?
Thanks in advance.
Dave.
I have googled and googled and not found the killer answer.
I have a gif, jpg or png file in which I want to change every pixel that has RGB of say FFD2BB to FFAA44.
Can you point me to the a solution via the command line or perl wrapper? Also would there be a way to convert a range? Say...
Change every FFD2** to FFAA44?
I have millions of these files to change so any batch type tricks appreciated as well.
Now that I think of it I also have another problem.
I have a jpg or png with resolution of say 300 dpi. I want to convert to eps but I seem to loose the resolution according to identify after? I have tried density before/after reading etc but am now stuck. Can anyone help with a command line to change source.png to dest.eps and maintain resolution/DPI header info?
Thanks in advance.
Dave.