Thread: modify image.

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

    Join Date
    Nov 2004
    Posts
    346
    Rep Power
    0

    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: 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?

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

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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.

    http://www.pythonware.com/products/pil/

    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 .

    http://starship.python.net/crew/zack/pymagick/

    Hope this helps,

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo