{
"info": {
"author": "RoadrunnerWMC",
"author_email": "roadrunnerwmc@gmail.com",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Multimedia :: Graphics"
],
"description": "Python libimagequant Integrations\n=================================\n\nThis library provides helper functions for converting between objects in the\n[unofficial Python libimagequant bindings library](http://libimagequant-python.readthedocs.io/)\nand \"image\" objects in various popular Python libraries.\n\nIf you'd like to add support for integration with more libraries, pull requests\nare welcome!\n\nInstall with pip:\n\n python3 -m pip install libimagequant_integrations\n\n\nAPI Documentation\n-----------------\n\nThis package contains the following submodules, for converting to/from the\nindicated classes:\n\n* `libimagequant_integrations.PIL` (for Pillow's `PIL.Image.Image`[\u2020](#pillow))\n* `libimagequant_integrations.PySide2` (for `PySide2.QtGui.QImage`)\n* `libimagequant_integrations.PyQt5` (for `PyQt5.QtGui.QImage`)\n* `libimagequant_integrations.skimage` (for scikit-image numpy arrays[\u2021](#skimage))\n\nI suggest you import using (for example)\n`import libimagequant_integrations.PyQt5 as liq_PyQt5`, to avoid typing an\nexcessive amount. :)\n\nEach submodule contains two functions, used to convert to and from the\n`libimagequant.Image` class:\n\n to_liq(image: OtherImageClass, attr: libimagequant.Attr) -> libimagequant.Image\n\n from_liq(result: libimagequant.Result, image: libimagequant.Image) -> OtherImageClass\n\n(Replace `OtherImageClass` with the appropriate other image class.)\n\nYou can check `libimagequant_integration`'s version number using\n`libimagequant_integrations.VERSION` and\n`libimagequant_integrations.VERSION_STR`, which are in the same format as the\nversion number constants in the `libimagequant` bindings library itself. The\nversion numbers follow semantic versioning. They begin with 1.0.0, and do not\ntrack libimagequant's version numbers at all.\n\n\u2020\nWhile Pillow claims to support images with RGBA palettes, this feature seems\nextremely buggy, almost to the point of being completely unusable. Therefore,\nthe `from_liq()` function discards the alpha channel and returns an image with\na RGB palette. If you do need the alpha channel information, you can obtain it\nmanually from the `libimagequant.Image` object.\n\n\u2021\nGive `to_liq()` an RGBA image (numpy array of shape `(y, x, 4)`, with\nuint8-type elements) as its \"image\" argument. `from_liq()` returns two numpy\narrays: one with pixel data (shape `(y, x, 1)`, uint8-type elements), and one\nwith the RGBA color palette (shape `(n, 4)`, uint8-type elements).\n\nLicense\n-------\n\nLicensed under the GNU GPL v3. See the `LICENSE` file for the full license\ntext.\n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/RoadrunnerWMC/libimagequant-python-integrations",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "libimagequant-integrations",
"package_url": "https://pypi.org/project/libimagequant-integrations/",
"platform": "",
"project_url": "https://pypi.org/project/libimagequant-integrations/",
"project_urls": {
"Homepage": "https://github.com/RoadrunnerWMC/libimagequant-python-integrations"
},
"release_url": "https://pypi.org/project/libimagequant-integrations/1.0.0/",
"requires_dist": [
"libimagequant"
],
"requires_python": ">=3.5",
"summary": "",
"version": "1.0.0"
},
"last_serial": 5735656,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "5974de39c4f09ec3df4a231981c2dca1",
"sha256": "38c9bca5ae649aecf9f0a2dc961eb05236c1d21a3b4a1c478aed79809c7249e5"
},
"downloads": -1,
"filename": "libimagequant_integrations-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5974de39c4f09ec3df4a231981c2dca1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 17594,
"upload_time": "2019-08-27T09:00:44",
"url": "https://files.pythonhosted.org/packages/b7/08/9440c19ecdcd9aa3f517e6f143bd3566d69fa896b1aa3bc2fed189e9f253/libimagequant_integrations-1.0.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7b20b52a5571be7d60eeeccd99012d29",
"sha256": "c2438a73539a5e1eb89b6bd8680cb751703a8440cad3187290d1f17210426d7b"
},
"downloads": -1,
"filename": "libimagequant_integrations-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7b20b52a5571be7d60eeeccd99012d29",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 3578,
"upload_time": "2019-08-27T09:00:46",
"url": "https://files.pythonhosted.org/packages/e0/62/70aa4c41269f1f98de92f427c56a068bfbf0b68b42d661735a6cc2a162a2/libimagequant_integrations-1.0.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "5974de39c4f09ec3df4a231981c2dca1",
"sha256": "38c9bca5ae649aecf9f0a2dc961eb05236c1d21a3b4a1c478aed79809c7249e5"
},
"downloads": -1,
"filename": "libimagequant_integrations-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5974de39c4f09ec3df4a231981c2dca1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 17594,
"upload_time": "2019-08-27T09:00:44",
"url": "https://files.pythonhosted.org/packages/b7/08/9440c19ecdcd9aa3f517e6f143bd3566d69fa896b1aa3bc2fed189e9f253/libimagequant_integrations-1.0.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7b20b52a5571be7d60eeeccd99012d29",
"sha256": "c2438a73539a5e1eb89b6bd8680cb751703a8440cad3187290d1f17210426d7b"
},
"downloads": -1,
"filename": "libimagequant_integrations-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7b20b52a5571be7d60eeeccd99012d29",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 3578,
"upload_time": "2019-08-27T09:00:46",
"url": "https://files.pythonhosted.org/packages/e0/62/70aa4c41269f1f98de92f427c56a068bfbf0b68b42d661735a6cc2a162a2/libimagequant_integrations-1.0.0.tar.gz"
}
]
}