Open Mon-ius opened 1 year ago
For ExportBuild -> optimizeimage.GetImageRegions -> QuadTreeNode -> Analyze(im, bbox):
ExportBuild
optimizeimage.GetImageRegions
QuadTreeNode
Analyze(im, bbox)
Replace pixels = im.load() with pixels = im.load() if im.mode == "RGBA" else im.convert("RGBA").load()
pixels = im.load()
pixels = im.load() if im.mode == "RGBA" else im.convert("RGBA").load()
For
ExportBuild
->optimizeimage.GetImageRegions
->QuadTreeNode
->Analyze(im, bbox)
:Replace
pixels = im.load()
withpixels = im.load() if im.mode == "RGBA" else im.convert("RGBA").load()