from PIL import Image
import struct
import sys
import os
dosya = os .path .join ( os .curdir , os .sep , 'LockBackground.cpbitmap' )
with open ( dosya) as f:
contents = f.read ( )
unk1, width, height, unk2, unk3, unk4 = struct .unpack ( '<6i' , contents[ -24 :] )
im = Image.fromstring ( 'RGBA' , ( width, height) , contents, 'raw' , 'RGBA' , 0 , 1 )
im.save ( 'converted.png' )
ZnJvbSBQSUwgaW1wb3J0IEltYWdlCmltcG9ydCBzdHJ1Y3QKaW1wb3J0IHN5cwoKaW1wb3J0IG9zCmRvc3lhID0gb3MucGF0aC5qb2luKG9zLmN1cmRpciwgb3Muc2VwLCAnTG9ja0JhY2tncm91bmQuY3BiaXRtYXAnKQoKd2l0aCBvcGVuKGRvc3lhKSBhcyBmOgogICAgY29udGVudHMgPSBmLnJlYWQoKQoKICAgCnVuazEsIHdpZHRoLCBoZWlnaHQsIHVuazIsIHVuazMsIHVuazQgPSBzdHJ1Y3QudW5wYWNrKCc8NmknLCBjb250ZW50c1stMjQ6XSkKaW0gPSBJbWFnZS5mcm9tc3RyaW5nKCdSR0JBJywgKHdpZHRoLGhlaWdodCksIGNvbnRlbnRzLCAncmF3JywgJ1JHQkEnLCAwLCAxKQppbS5zYXZlKCdjb252ZXJ0ZWQucG5nJyk=