{ "info": { "author": "Andrew Challis", "author_email": "andrewchallis@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Multimedia :: Graphics" ], "description": "NoteShrinker\n==========\n\n![GitHub stars](https://img.shields.io/github/stars/ghandic/NoteShrinker.svg?style=social&label=Stars)\n![Docker build](https://img.shields.io/docker/automated/challisa/noteshrinker.svg)\n![Travis build](https://travis-ci.org/ghandic/NoteShrinker.svg?branch=master)\n![Package version](https://img.shields.io/pypi/v/NoteShrinker.svg)\n![License](https://img.shields.io/github/license/ghandic/NoteShrinker.svg)\n\nThis Repo packages up the work from [Mark Zucker](https://github.com/mzucker/noteshrink) into a python module and cli script\n\nConvert scans of handwritten notes to beautiful, compact *PDFs* [see full writeup](https://mzucker.github.io/2016/09/20/noteshrink.html)\n\nNote this package does not convert to PDF as the original module relies on ImageMagick, this is very easy to implement yourself.\n\n\nExamples\n------------\nThese examples use the default settings in the Python module.\n\nOriginal | NoteShrunk\n:-------------------------:|:-------------------------:\n**Size: 1.4MB**![Original example 1](Examples/Input/us_tax_form_1937.jpg?raw=true \"Original US Tax return form from 1937\") | **Size: 516KB**![NoteShunk example 1](Examples/Output/us_tax_form_1937.png?raw=true \"NoteShrunk US Tax return form from 1937\")\n**Size: 73KB**![Original example 2](Examples/Input/winston_churchhill_letter.jpg?raw=true \"Original letter from Winston Churchhill\") | **Size: 51KB**![NoteShunk example 2](Examples/Output/winston_churchhill_letter.png?raw=true \"NoteShrunk letter from Winston Churchhill\")\n**Size: 132KB**![Original example 3](Examples/Input/Restraint_of_domestic_animals.jpg?raw=true \"Original page from 'Restraint of domestic animals'\")| **Size: 109KB**![NoteShunk example 3](Examples/Output/Restraint_of_domestic_animals.png?raw=true \"NoteShrunk page from 'Restraint of domestic animals'\")\n\n\nRequirements\n------------\n\n- Python 2 or 3\n- NumPy 1.10 or later\n- SciPy\n- Image module from PIL or Pillow\n\n\nInstallation\n-----\n\n**Ensure you have Numpy, SciPy and PIL installed:**\n\n```python\npip install numpy scipy pillow\n```\n\n```python\npip install NoteShrinker\n```\n\nUsage\n-----\n\n**Docker**\n```bash\ndocker run -v $PWD/Examples/Input:/imgs challisa/noteshrinker /imgs/us_tax_form_1937.jpg -w\n```\n\n**Command line**\n```bash\n note-shrinker IMAGE1 [IMAGE2 ...]\n```\n\n**Integrating into your Python scripts**\n\n```python\nfrom NoteShrinker import NoteShrinker\n\n# Create a NoteShrink object full of images, either an array of filepaths, PIL images or numpy arrays\nns = NoteShrinker(['test.png'], **args)\n\n# Shrink the images by calling the shrink method, this returns an array of PIL images encoded as RGB\nshrunk = ns.shrink()\n\n# Carry on with your image processing...\nfor img in shrunk:\n img.save('example.png')\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ghandic/NoteShrinker", "keywords": "noteshrink", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "NoteShrinker", "package_url": "https://pypi.org/project/NoteShrinker/", "platform": "", "project_url": "https://pypi.org/project/NoteShrinker/", "project_urls": { "Homepage": "https://github.com/ghandic/NoteShrinker" }, "release_url": "https://pypi.org/project/NoteShrinker/0.2.0/", "requires_dist": [ "numpy (>=1.1.0)", "pillow", "scipy" ], "requires_python": "", "summary": "Smart shrinking of the size and color palette of images", "version": "0.2.0" }, "last_serial": 4112528, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a13381938dad2e3d2f758dd4f4d49843", "sha256": "e183a214918bb715e3d002ab54216d3d8a21327a38afcfa1da242426d11406aa" }, "downloads": -1, "filename": "NoteShrinker-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a13381938dad2e3d2f758dd4f4d49843", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8331, "upload_time": "2018-07-28T00:20:56", "url": "https://files.pythonhosted.org/packages/21/2b/7863884cd2ffb55bedaa6ca7c9d824e0fcae2c506b4bcebaf8669e93b5b7/NoteShrinker-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17aea1475c5168ae61f03ba46149e6cd", "sha256": "0f046a89534e3707d0196f638db31d2ba13856d69ad54174c9cc59c00149a885" }, "downloads": -1, "filename": "NoteShrinker-0.1.0.tar.gz", "has_sig": false, "md5_digest": "17aea1475c5168ae61f03ba46149e6cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5783, "upload_time": "2018-07-28T00:20:58", "url": "https://files.pythonhosted.org/packages/7c/0b/0a14f5475c15e6188da19f26253980665cbe08e9dc5d578f13aa75e9f8b6/NoteShrinker-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "965437a3571b8f61eaf8bfd289ea789c", "sha256": "699e13b37121eb7ea879d85244b3f29ffd9cad514f428c07effa8d070760dbce" }, "downloads": -1, "filename": "NoteShrinker-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "965437a3571b8f61eaf8bfd289ea789c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9057, "upload_time": "2018-07-28T03:22:33", "url": "https://files.pythonhosted.org/packages/e7/5f/ebf167bbbf1062e82c428d0fa48a66bed4f5ff7c99c86496e3d3369175ab/NoteShrinker-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e73b4b6896ff0b307332717ef2694ae0", "sha256": "1dee78222d5b4987dce38a6781ba47a5cecb479c8f75f604e56cc6425e968ff3" }, "downloads": -1, "filename": "NoteShrinker-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e73b4b6896ff0b307332717ef2694ae0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6179, "upload_time": "2018-07-28T03:22:34", "url": "https://files.pythonhosted.org/packages/b4/30/e1bd2a731eb3c2533ab299b333af2b30ce73aa7f322833776b3e7d3dd1f0/NoteShrinker-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "495dd16fad33456e8ae7536222cf1835", "sha256": "6f7ce0681a109d97242200931f3c5c7fb54d125a9bc5285a5637018cf4df7bbb" }, "downloads": -1, "filename": "NoteShrinker-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "495dd16fad33456e8ae7536222cf1835", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9269, "upload_time": "2018-07-28T09:13:53", "url": "https://files.pythonhosted.org/packages/eb/af/b6aef6f7674d2ef2ed952c1113c066324f63b00c68ed9f07b25905fb4761/NoteShrinker-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10f309f37d048f97a07f2a9e67eae58c", "sha256": "55fb1f7a00898b631dfc3c779b4dab0ceb14a61aebcb89ffec98e17e9a58f330" }, "downloads": -1, "filename": "NoteShrinker-0.1.2.tar.gz", "has_sig": false, "md5_digest": "10f309f37d048f97a07f2a9e67eae58c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6313, "upload_time": "2018-07-28T09:13:55", "url": "https://files.pythonhosted.org/packages/52/4f/9fee913ecbaae7328178a74a302d23d2645d75b78651ecdab3e00af96a35/NoteShrinker-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8c0cbb48c527da2ef442e84c0ea51b54", "sha256": "93f224de84018e52fba5b27676648f08b94efb29f8c4c564423945a9cd440290" }, "downloads": -1, "filename": "NoteShrinker-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8c0cbb48c527da2ef442e84c0ea51b54", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9551, "upload_time": "2018-07-28T22:53:44", "url": "https://files.pythonhosted.org/packages/ff/67/169e2b50c6184ec27f6e9b41af075cf4c909521f63678fb9ee44f6e11d91/NoteShrinker-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10ef322684844b788dfd56fcd8b7667a", "sha256": "a5fa892209130d3e6fff2afbc91f84fb656f4e84818f4f6f80022f52d6151132" }, "downloads": -1, "filename": "NoteShrinker-0.2.0.tar.gz", "has_sig": false, "md5_digest": "10ef322684844b788dfd56fcd8b7667a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6566, "upload_time": "2018-07-28T22:53:45", "url": "https://files.pythonhosted.org/packages/3a/ac/a38de14c8f4dac78b0a1a345250123d5aff0aa05de3970b2d54023e830b8/NoteShrinker-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8c0cbb48c527da2ef442e84c0ea51b54", "sha256": "93f224de84018e52fba5b27676648f08b94efb29f8c4c564423945a9cd440290" }, "downloads": -1, "filename": "NoteShrinker-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8c0cbb48c527da2ef442e84c0ea51b54", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9551, "upload_time": "2018-07-28T22:53:44", "url": "https://files.pythonhosted.org/packages/ff/67/169e2b50c6184ec27f6e9b41af075cf4c909521f63678fb9ee44f6e11d91/NoteShrinker-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10ef322684844b788dfd56fcd8b7667a", "sha256": "a5fa892209130d3e6fff2afbc91f84fb656f4e84818f4f6f80022f52d6151132" }, "downloads": -1, "filename": "NoteShrinker-0.2.0.tar.gz", "has_sig": false, "md5_digest": "10ef322684844b788dfd56fcd8b7667a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6566, "upload_time": "2018-07-28T22:53:45", "url": "https://files.pythonhosted.org/packages/3a/ac/a38de14c8f4dac78b0a1a345250123d5aff0aa05de3970b2d54023e830b8/NoteShrinker-0.2.0.tar.gz" } ] }