# -*- coding: utf-8 -*- import locale locale.setlocale (locale.LC_ALL, '') import PIL from PIL import Image texture_name = '00.jpg' img = Image.open(texture_name) print img.format print img.size print img.mode