In Lime version 3.5.2 and OpenFL version 4.5.2 I used webp images, but in Lime version 4.0.2 and OpenFL version 4.9.1 I get error in this code:
lime_graphics_Image.loadFromBytes = function(bytes) {
if(bytes == null) {
return lime_app_Future.withValue(null);
}
var type = "";
if(lime_graphics_Image.__isPNG(bytes)) {
type = "image/png";
} else if(lime_graphics_Image.__isJPG(bytes)) {
type = "image/jpeg";
} else if(lime_graphics_Image.__isGIF(bytes)) {
type = "image/gif";
} else {
throw new js__$Boot_HaxeError("Image tried to read PNG/JPG Bytes, but found an invalid header.");
}
return lime_graphics_Image.loadFromBase64(lime_graphics_Image.__base64Encode(bytes),type);
};
It does not support webp?