polaris.analysis.thumbnail.image_size

polaris.analysis.thumbnail.image_size(filename)[source]

Get the size of an image in pixels

Parameters:

filename (str) – The image to measure

Returns:

  • width (int) – The width in pixels

  • height (int) – The height in pixels