Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setBackgroundImage() bug? #7194

Open
vrdawson opened this issue Mar 26, 2024 · 1 comment
Open

setBackgroundImage() bug? #7194

vrdawson opened this issue Mar 26, 2024 · 1 comment

Comments

@vrdawson
Copy link

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

@vadi2
Copy link
Member

vadi2 commented Mar 26, 2024

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

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

No branches or pull requests

2 participants