{ "info": { "author": "Gabor Wnuk", "author_email": "gabor.wnuk@me.com", "bugtrack_url": null, "classifiers": [], "description": "imagepreview\n============\n[![Build Status](https://travis-ci.org/GaborWnuk/image-preview-python.svg?branch=master)](https://travis-ci.org/GaborWnuk/image-preview-python)\n\nSimple helper module for Image Preview method for REST and GraphQL for immediate image preview on your client's side (Swift, Java, JavaScript and so on).\n\nIdea is to deliver only around 200 bytes of image data as a normal base64 data in one of JSON fields of your entities and then issue request to obtain full resolution of an image.\n\n## Short \"how does it work\"\nThe main reason to do such thing is to show your user approximate look of your data stream as soon as possible. This method gives you the ability to serve image previews in the sam milisecond you show your text content in your app, as image preview is delivered as one of data fields in your JSON response.\n\nThis library is sort of a helper to achieve above.\n\nBecause every thumbnail is compressed as JPEG, with the same size (default: 42x42 pixels) and using the same Huffman table, each JPEG file consist of a common header (620 bytes) and a small picture data part (around 200 bytes, depending on quality you use).\n\nHaving this in mind we choose to omit headers and send only 200 bytes (base64) and then prepend this data with a header on client side.\n\nYou can find basic Swift / iOS example here: [https://github.com/GaborWnuk/image-preview-ios-demo](https://github.com/GaborWnuk/image-preview-ios-demo).", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/GaborWnuk/image-preview-python/tarball/0.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GaborWnuk/image-preview-python", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "imagepreview", "package_url": "https://pypi.org/project/imagepreview/", "platform": "any", "project_url": "https://pypi.org/project/imagepreview/", "project_urls": { "Download": "https://github.com/GaborWnuk/image-preview-python/tarball/0.0.1", "Homepage": "https://github.com/GaborWnuk/image-preview-python" }, "release_url": "https://pypi.org/project/imagepreview/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Image Preview creation python library to create low footprint image previews, convenient to use as base64 data in your REST / GraphQL API payload.", "version": "0.0.1" }, "last_serial": 2428429, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d6d4d9395b00c64c07eeb360cd2d10ee", "sha256": "41c96b8abe61ae099152077c54b235ebc6ed18193fc191866f87b49a11d02fe4" }, "downloads": -1, "filename": "imagepreview-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d6d4d9395b00c64c07eeb360cd2d10ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2939, "upload_time": "2016-10-28T12:17:55", "url": "https://files.pythonhosted.org/packages/ca/08/26fc2baafb3ca1687f632b2ca5a616f92ecf429fa28f25a87131e5d77be0/imagepreview-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d6d4d9395b00c64c07eeb360cd2d10ee", "sha256": "41c96b8abe61ae099152077c54b235ebc6ed18193fc191866f87b49a11d02fe4" }, "downloads": -1, "filename": "imagepreview-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d6d4d9395b00c64c07eeb360cd2d10ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2939, "upload_time": "2016-10-28T12:17:55", "url": "https://files.pythonhosted.org/packages/ca/08/26fc2baafb3ca1687f632b2ca5a616f92ecf429fa28f25a87131e5d77be0/imagepreview-0.0.1.tar.gz" } ] }