From 94929a2fdacfe8cbb720c309b01d855d4880330e Mon Sep 17 00:00:00 2001 From: josch Date: Tue, 11 Mar 2014 17:12:36 +0100 Subject: [PATCH] initial commit --- lodextract.py | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 lodextract.py diff --git a/lodextract.py b/lodextract.py new file mode 100644 index 0000000..792a6ae --- /dev/null +++ b/lodextract.py @@ -0,0 +1,78 @@ +#!/usr/bin/env python + +import zlib +import struct +import os +from PIL import Image + +def is_pcx(data): + size,width,height = struct.unpack("