Files
Aurora.3/tools/mapcapturemerge/imageHelpers.py
Karolis 031b958039 Fixes to getFlatIcon and more. (#3353)
(Rebased and reopened #3347)

Attempted to fix pipe and door rendering
Fixed Table, carpet rendering
Ported full map-capture tool from bay, with python script to merge captured images.
2017-09-19 15:43:01 +03:00

16 lines
399 B
Python

from PIL import Image
import re
reg_findnums = re.compile("[0-9]+")
class ImageFile:
def __init__(self, filename, path):
self.filename = path
nums = reg_findnums.findall(filename)
self.cords = (int(nums[0]), int(nums[1]), int(nums[2]))
self.range = int(nums[3])
def getImage(self):
im = Image.open(self.filename)
im.load()
return im