Description
Brought this up with Soupster in Discord. It appears to be an issue with fetch() now returning as a string instead of userdata for images. Maybe it's some kind of new parameter you have to provide to tell it to process it as an image or maybe it's just a bug?
Code
png = fetch("/appdata/test.png")
printh(type(png))
printh(png:width()) |
On 0.2.0d it reports:
[016] userdata
[016] 288
On 0.2.0e+ it reports:
[018] string
[018] @@ /ram/cart/main.lua:3: attempt to call a nil value (method 'width')






3 comments