#!/usr/bin/env python import zlib import struct import os from PIL import Image def is_pcx(data): size,width,height = struct.unpack("