This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| outname = 'out.png' | |
| import struct | |
| import binascii | |
| import zlib | |
| from math import ceil | |
| import codecs | |
| import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| #Make a PNG file | |
| IMAGE = ( | |
| 'cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54', | |
| 'cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54', | |
| 'cdbc54ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcdbc54', | |
| 'cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54cdbc54', | |
| 'cdbc54cdbc54cdbc54cdbc54ffffffffffffffffffffffffffffffffffffffffffffffffcdbc54cdbc54cdbc54cdbc54', | |
| 'cdbc54cdbc54cdbc54cdbc54cdbc54ffffffcdbc54cdbc54cdbc54cdbc54cdbc54ffffffcdbc54cdbc54cdbc54cdbc54', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| #Make a PNG file | |
| IMAGE = ( | |
| '0000000000000000', | |
| '0000000000000000', | |
| '0111111111111110', | |
| '0000000000000000', | |
| '0000111111110000', | |
| '0000010000010000', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| #Print some infomation of a PNG file | |
| import struct | |
| import datetime | |
| import binascii | |
| def crcChecker(data, crc): | |
| computedCRC = binascii.crc32(data) |
NewerOlder