mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-14 12:12:03 +00:00
(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.
16 lines
399 B
Python
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
|