You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image.load_ from_file() and texture.get_image() returned null when the image to be loaded is too large (e.g. 512x512, 1280256, 2048 * 1028, etc.) . However, loading smaller images returns as expected (e.g. 1280 * 128, 2048127, etc.).
Steps to reproduce
var img_a = Image.load_from_file("res://Images/img_1280x1024.png") # null
var img_b = Image.load_from_file("res://Images/img_1280x256.png") # null
var img_c = Image.load_from_file("res://Images/img_1280x128.png") #OK
var texture_a:Texture2D = load("res://Images/img_1280x1024.png") #OK
var img_of_texture_a: Image = texture_a.get_image() # null
var texture_b:Texture2D = load("res://Images/img_1280x256.png") #OK
var img_of_texture_b: Image = texture_b.get_image() # null
var texture_c:Texture2D = load("res://Images/img_1280x128.png") #OK
var img_of_texture_c: Image = texture_c.get_image() #OK
Godot version
v4.1.stable.official [9704596]
System information
Windows 10 - v4.1.stable
Issue description
Image.load_ from_file() and texture.get_image() returned null when the image to be loaded is too large (e.g. 512x512, 1280256, 2048 * 1028, etc.) . However, loading smaller images returns as expected (e.g. 1280 * 128, 2048127, etc.).


Steps to reproduce
Minimal reproduction project
Project_image_load.zip
The text was updated successfully, but these errors were encountered: