Thread: modify image.

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Rep Power

    modify image.

    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:

    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?

  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Hull, UK
    Rep Power
    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,

    programming language development: Hula

IMN logo majestic logo threadwatch logo seochat tools logo