Mudlet/Mudlet

setBackgroundImage() bug?

Opened this issue · 1 comments

Brief summary of issue / Description of requested feature:

I have some AI generated images (1535x1535 jpegs) and when I add transparency (and change to .png) to the they go up to about 5mb.. they don't seem to work with setBackgroundImage()... I shrink them down to 1080x1080 and they get down to ~2.5mb and work fine.

Steps to reproduce the issue / Reasons for adding feature:

  1. Run the provided script and the lower size images display properly.

Error output / Expected result of feature

Does not show image on background for higher size files.

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

Using this script to display:

function imageBackground(image)
local basePath = [[C:/Users/Riley/Desktop/GUI Art/Effects/]]

local opacities = {10, 20, 30, 40, 50, 60, 70, 80, 90, 80, 70, 60, 50, 40, 30, 20, 10}

for i, opacity in ipairs(opacities) do
    tempTimer(0.05 * i, function() -- Adjust initial delay as needed
        local imagePath = basePath .. image .. opacity .. ".png"
        setBackgroundImage("main", imagePath, "border")
    end)
end

tempTimer(0.9, function() setBackgroundImage("") end)
end

Add some images here to reproduce the issue please, otherwise we can't check for the problem.