{"id":13768797,"url":"https://github.com/shmulvad/alfred-tinypng","last_synced_at":"2026-01-20T04:12:24.857Z","repository":{"id":45664805,"uuid":"286788673","full_name":"shmulvad/alfred-tinypng","owner":"shmulvad","description":"Compress png and jpg images using TinyPNG in Alfred","archived":false,"fork":false,"pushed_at":"2021-05-01T16:53:38.000Z","size":2864,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-17T03:31:57.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shmulvad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-11T16:03:56.000Z","updated_at":"2022-10-19T04:39:28.000Z","dependencies_parsed_at":"2022-09-06T02:01:53.003Z","dependency_job_id":null,"html_url":"https://github.com/shmulvad/alfred-tinypng","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmulvad%2Falfred-tinypng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmulvad%2Falfred-tinypng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmulvad%2Falfred-tinypng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmulvad%2Falfred-tinypng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shmulvad","download_url":"https://codeload.github.com/shmulvad/alfred-tinypng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253497297,"owners_count":21917683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:01:25.981Z","updated_at":"2026-01-20T04:12:24.831Z","avatar_url":"https://github.com/shmulvad.png","language":"Python","funding_links":[],"categories":["Productivity"],"sub_categories":[],"readme":"# Alfred TinyPNG\n\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/shmulvad/alfred-tinypng?sort=semver\u0026style=flat-square)][releases]\n![Languages supported](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue?style=flat-square)\n[![GitHub downloads](https://img.shields.io/github/downloads/shmulvad/alfred-tinypng/total?style=flat-square)][releaseLatest]\n[![GitHub issues](https://img.shields.io/github/issues/shmulvad/alfred-tinypng?style=flat-square)][issues]\n[![GitHub license](https://img.shields.io/github/license/shmulvad/alfred-tinypng?style=flat-square)][license]\n\n\nAn [Alfred][alfred] workflow for quickly compressing and resizing images using [TinyPNG][tinypng]. Simply select a collection of images or a folder in Finder and activate the workflow.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"1200\" height=\"auto\" src=\"images/compressing.gif?raw=true\"\u003e\n\u003c/p\u003e\n\n⭐ If you find this repo useful, please consider starring it to let me know.\n\n\n## Installation and Getting Started\n1. Install [alfred-tinypng][releaseLatest] workflow.\n2. All further updates are handled automatically.\n\nYou will need to configure the workflow with an API key from TinyPNG. Type `tinypng_api` to get a link to [the page][tinyApi] where you can get your API key and to actually set the key when you have gotten it.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"1200\" height=\"auto\" src=\"images/tinypng_api.png?raw=true\"\u003e\n\u003c/p\u003e\n\nThe workflow only supports Python 3.6+. If you have any errors running the code, try changing the `pythonDir` workflow variable to the the path at which you have Python 3 installed.\n\n## Usage\nSelect either a folder, image file or a number of image files in Finder. Afterward, open Alfred and type `tinypng`. You are presented with the following choices:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"1200\" height=\"auto\" src=\"images/tinypng.png?raw=true\"\u003e\n\u003c/p\u003e\n\nChoose an item based on what you want. When selected, the workflow will start compressing/resizing the image(s). After it is done, they will be saved to the same directory and with the same filename as the original image. By default, the original image will be preserved with `.bak` prepended before the file extension. I.e. if compressing `img.jpg`, this will now become `img.bak.jpg` and the compressed image will be saved as `img.jpg`. You can choose to always override the image(s) by changing the workflow variable `KEEP_BACKUPS` to `False`.\n\nRefer to the TinyPNG documentation for a full explanation of the different resizing options.\n\n\n## Why? [Another TinyPNG workflow][tinypngOtherAlfred] already exists\n\n* It doesn't support choosing the files based on what is selected in Finder (which I personally prefer).\n* Only simple compression is supported whereas all TinyPNG compressions and resizing options are supported in this workflow.\n* It seems to be abandoned by the creator (has not been updated since 2015).\n\n\n## Credits\nThe workflow makes use of the following:\n\n* [OneUpdater][oneUpdater] by vitorgalvao for handling automatic updates.\n* [TinyPNG Python API][tinypngApi]\n\n[alfred]: https://www.alfredapp.com/\n[license]: https://github.com/shmulvad/alfred-tinypng/blob/master/LICENSE\n[issues]: https://github.com/shmulvad/alfred-tinypng/issues\n[tinyApi]: https://tinypng.com/developers\n[tinypng]: https://tinypng.com\n[releases]: https://github.com/shmulvad/alfred-tinypng/releases\n[releaseLatest]: https://github.com/shmulvad/alfred-tinypng/releases/latest/download/TinyPNG.alfredworkflow\n[oneUpdater]: https://github.com/vitorgalvao/alfred-workflows/tree/master/OneUpdater\n[tinypngApi]: https://tinypng.com/developers/reference/python\n[tinypngOtherAlfred]: https://www.alfredforum.com/topic/1520-tiny-png-workflow-updated-to-v12/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshmulvad%2Falfred-tinypng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshmulvad%2Falfred-tinypng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshmulvad%2Falfred-tinypng/lists"}