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

test2.lua:10: attempt to index local 'img2' (a nil value) #63

Open
coliflor opened this issue Sep 2, 2021 · 0 comments
Open

test2.lua:10: attempt to index local 'img2' (a nil value) #63

coliflor opened this issue Sep 2, 2021 · 0 comments

Comments

@coliflor
Copy link

coliflor commented Sep 2, 2021

`local magick = require "magick"

local img = magick.load_image("white.ico")
local blob = img:get_blob()
local img2 = magick.load_image_from_blob(blob)
img2:write("test2.ico")`

error:

luajit: test2.lua:6: attempt to index local 'img2' (a nil value) stack traceback: test2.lua:6: in main chunk [C]: at 0x55d98ce58120

Works fine when I try it with a png format.
The icon is white and of size 1px and was created using GIMP.

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

1 participant