Cogl.Bitmap.get_size_from_file

function get_size_from_file(filename: String): [return_value: Cogl.Bool, width: Number(gint), height: Number(gint)] {
    // Gjs wrapper for cogl_bitmap_get_size_from_file()
}
  

Parses an image file enough to extract the width and height of the bitmap.

Since 1.0

filename

the file to check

return_value

true if the image was successfully parsed

width

return location for the bitmap width, or null

height

return location for the bitmap height, or null