{"library":"imagesize","type":"library","category":null,"description":"The `imagesize` library is a pure Python module that efficiently extracts image dimensions, DPI, and other metadata (color depth, channel count, rotation) directly from image file headers, without needing to load the full image data. It supports a wide range of formats including BMP, PNG, JPEG, JPEG2000, GIF, TIFF, SVG, Netpbm, WebP, AVIF, HEIC, and HEIF. The current version is 2.0.0. It has a somewhat active release cadence, with recent updates in early March 2026.","language":"python","status":"active","version":"2.0.0","tags":["image","size","dimensions","metadata","header","JPEG","PNG","GIF","TIFF","SVG","WebP","AVIF","HEIC","HEIF"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install imagesize","imports":["import imagesize","import imagesize\nwidth, height = imagesize.get('image.png')","import imagesize\nxdpi, ydpi = imagesize.getDPI('image.png')","import imagesize\ninfo = imagesize.get_info('image.png')"]}],"homepage":null,"github":"https://github.com/shibukawa/imagesize_py","docs":null,"changelog":null,"pypi":"https://pypi.org/project/imagesize/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.13,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/imagesize/compatibility"}}