#!/usr/bin/env python

import os, sys

import gtk
import gtk.gdk as gdk

filename = sys.argv[1]

data = open(filename).read ()

loader = gdk.PixbufLoader ("jpeg")
try:
	loader.write (data)
	loader.close ()
	pixbuf = loader.get_pixbuf ()
except Exception, e:
	print e

