Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making an application for the Ubuntu App Showdown and I want to include basic image editing like adding black and white, grey effects etc to the image. But I don't know how to do that. I have been reading about PIL and I have tried it and I can't get it to work. So if you could help me with an example or a link to tutorial or something else it would be very helpful. Thanks.

share|improve this question
If you can tell us in more detail what you're exactly trying to to, we should be able to provide better help. – David Planella Jun 22 '12 at 19:21
Well, I want to apply effects to an image from a menu with options. Actually, I'm trying to do something like Instagram for Ubuntu. I'm making my application with quickly and I'm using Glade. – Valio Y Jun 23 '12 at 17:21
up vote 4 down vote accepted

You can use Python Imaging Library (PIL), but you can also use Cairo. It also depends which graphical toolkit you're using for your app (GTK, Qt, something else...)

share|improve this answer
PIL links do not work... – elomage Apr 23 '15 at 20:10
@elomage fixed, thanks for the heads up! – David Planella Apr 25 '15 at 7:54

Another way to do image editing with Python is to write a script or plugin for the GIMP. Akkana Peck has some information about that in her GIMP book and the corresponding site.

But of course that might not fit in with your application...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.