A small tip for PIL

PIL stands for Python Imaging Library. It is fairly useful when it comes to handling images under python. However, it comes with a pet peeve to me: the show() method of a Image object will execute sh xv <imagefile>I don’t have xv installed on my system, neither do I want to since it’s shareware.

Now I really don’t know why I haven’t came out with this idea before: simply create a symbolic link /usr/local/bin/xv and link it to the display utility that comes with the common image handling package imagemagick then everything will work just fine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s