How to import jpg/png into a pycharm???

I have struggled with this and find more frustration than answers.  I want to import simple graphics (jpg/png) into pycharm (community edition) so that they are displayed in the console when you run the code.  

Here is what I tried :

import Image

image = Image.open('Tulips.jpg')
image.show()

This didn't work, so another answer would be greatly appreciated.  If this code is non-sense, please disregard. 

What is the best STEP by STEP method of doing this please?

1 comment
Comment actions Permalink

The image file must be in the directory you're running your program

0

Please sign in to leave a comment.