dimensions-0.0.2


توضیحات

Python lib to read width and height of image files
ویژگی مقدار
سیستم عامل -
نام فایل dimensions-0.0.2
نام dimensions
نسخه کتابخانه 0.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Phil Adams
ایمیل نویسنده phil@philadams.net
آدرس صفحه اصلی https://github.com/philadams/dimensions
آدرس اینترنتی https://pypi.org/project/dimensions/
مجوز LICENSE.txt
dimensions ========== A pure Python library for reading the width and height of images. installation ------------ `pip install dimensions` Done. usage ----- For a single image: > dimensions src/sample.png src/sample.png width: 405 height: 239 content_type: image/png Wildcards also work (escape \* in markdown for PyPi RST...): > dimensions src/\*.png src/sample.png width: 405 height: 239 content_type: image/png src/sample2.png width: 473 height: 469 content_type: image/png As always, full details are available via `dimensions -h`. In Python code, simply call `dimensions.dimensions`. If you provide a sequence of filenames, you get back a sequence of tuples; if you provide just a single filename, you get back a single tuple. import dimensions dims = dimensions.dimensions('./src/sample.png') # (405, 239, 'image/png', './src/sample.png') future ------ - release newer version to PyPi


نحوه نصب


نصب پکیج whl dimensions-0.0.2:

    pip install dimensions-0.0.2.whl


نصب پکیج tar.gz dimensions-0.0.2:

    pip install dimensions-0.0.2.tar.gz