January 13th, 2005, 08:03 AM
i have a small thumbnail, it can be any image format (that can be displayed in browsers), and is basically half filled with one colour, and half filled with whitespace. the thing is the line which seperates the two isn't straight, it's curved: http://www.oscommerce.com/osCommerce...orner_left.gif
This particular one has different values in the filled in area but mine will be constant colour.
is there any way possible to change this image to different inputed values for colour?
January 14th, 2005, 08:04 AM
I'm assuming you want to do this using Python not a program like Gimp or Photoshop, in which case this probably isn't the right place for this Question; you would be better off asking this in the Photoshop forum.
Anyway, you should be looking at PIL [the Python Imaging Library]. This is the usual way to work with images in Python. There is also a module called PythonMagick but there wasn't any documentation when I last looked at it.
I'm not 100% about changing colors in pre-existing images with PIL so I would guess that it would be better to draw the image from scratch using different colors each time – being such a simple Image this shouldn't be a problem.
Still, I would give PythonMagick a closer look as well since it may offer an easier way to do this .
Hope this helps,