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

[Lua] Incorrect texture loading (probably, RGB as RGBA) #1653

Open
Lepestronik opened this issue Mar 19, 2023 · 2 comments
Open

[Lua] Incorrect texture loading (probably, RGB as RGBA) #1653

Lepestronik opened this issue Mar 19, 2023 · 2 comments

Comments

@Lepestronik
Copy link

Describe the bug
Some images used in Lua Universal Tools are loaded incorrectly. Presumably, this happens as a result of an attempt to load an image with an alpha channel, although the source file does not contain it (the pictures in the screenshots are in JPG format, similar errors were encountered when uploading RGB PNG).

Screenshots
image
This file loads correctly.

image
This file loads incorrectly.

Desktop:

  • OS: Linux.
  • Frontend: Qt.
  • Version: 1.7.0.
@levinli303
Copy link
Collaborator

levinli303 commented Jul 28, 2023

I created a script to render this image in center and did not meet with the issue

local function get_parent_path(item)
    return item:match("(.*[/\\])")
end

local script_dir = get_parent_path(celestia:getscriptpath())

celestia:overlay (10, 0, 0, 1.0, script_dir .. "image_Earth2.jpg")
wait (10)
Screenshot 2023-07-28 at 23 25 50

@375gnu
Copy link
Member

375gnu commented Jul 28, 2023

I'm neither not able to reproduce.

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

No branches or pull requests

3 participants