项目作者: kobaltcore

项目描述 :
A utility package for getting image dimensions without loading files into memory. No dependencies!
高级语言: Python
项目地址: git://github.com/kobaltcore/pymage_size.git
创建时间: 2018-12-21T15:16:00Z
项目社区:https://github.com/kobaltcore/pymage_size

开源协议:

下载


pymage_size

Downloads

A Python package for getting the dimensions of an image without loading it into memory. No external dependencies either!

Installation

pymage_size is available from PyPI, so you can install via pip:

  1. $ pip install pymage_size

Usage

  1. from pymage_size import get_image_size
  2. img_format = get_image_size("example.png")
  3. width, height = img_format.get_dimensions()