Skip to content

Fix RGB only images crash issue - #18

Open
Mon-ius wants to merge 1 commit into
kleientertainment:masterfrom
MX-Engine:master
Open

Fix RGB only images crash issue#18
Mon-ius wants to merge 1 commit into
kleientertainment:masterfrom
MX-Engine:master

Conversation

@Mon-ius

@Mon-ius Mon-ius commented May 14, 2023

Copy link
Copy Markdown

For ExportBuild -> optimizeimage.GetImageRegions -> QuadTreeNode -> Analyze(im, bbox):

Replace pixels = im.load() with
pixels = im.load() if im.mode == "RGBA" else im.convert("RGBA").load()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant