Metadata-Version: 2.1
Name: Pil-Lite
Version: 0.1.3
Summary: Python Imaging Library Lite
Author-email: Alexey Vasilyev <alexey@alexadotlife.com>
License: MIT
Project-URL: Homepage, https://github.com/alexa-infra/pil-lite
Project-URL: Issues, https://github.com/alexa-infra/pil-lite/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Utilities
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: cffi>=1.1
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"

Pil-Lite
=========

*lightweight and limited version of PIL/Pillow library*

* no native external dependencies (like libjpeg, zlib etc)
* supports only trivial subset of formats (JPEG, PNG, BMP, 8 bit per channel)
* no image editing functionality (as well as many other things)
* basically interface has only *open*, *save*, *resize* and *thumbnail* functions
* is based on `stb_image.h, stb_image_write.h, stb_image_resize.h libraries <https://github.com/nothings/stb>`_
* provides cffi python bindings for stb_image libraries
* potentially **insecure**, should be used only with well-known sources of images
* **in production it's recommended to use PIL/Pillow libraries**

.. code:: python

    from PilLite import Image
    img = Image.open('ich.png')
    print(img.size)
    img.thumbnail((200, 200))
    img.save('ich.jpg')


Powered by ❤️
