kleientertainment / ds_mod_tools

Don't Starve Mod Tools
Other
144 stars 42 forks source link

Fix RGB only images crash issue #18

Open Mon-ius opened 1 year ago

Mon-ius commented 1 year ago

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()