{"id":21857567,"url":"https://github.com/hjerpbakk/get-image-snippet-workflow","last_synced_at":"2026-05-18T01:06:26.647Z","repository":{"id":149284342,"uuid":"138975416","full_name":"hjerpbakk/get-image-snippet-workflow","owner":"hjerpbakk","description":"A workflow for macOS which takes an image and returns the HTML snippet needed to both lazy load the image and gives the user an option to use a lightbox.","archived":false,"fork":false,"pushed_at":"2021-06-18T09:26:46.000Z","size":1783,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T19:32:51.930Z","etag":null,"topics":["automator-workflow","html","image-snippet-workflow","images","lightbox","macos","python","service","workflow"],"latest_commit_sha":null,"homepage":"https://hjerpbakk.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hjerpbakk.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,"governance":null}},"created_at":"2018-06-28T06:24:12.000Z","updated_at":"2024-08-24T08:43:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb9d96cd-1a88-462c-afd0-4ccaff16bdbc","html_url":"https://github.com/hjerpbakk/get-image-snippet-workflow","commit_stats":null,"previous_names":["hjerpbakk/get-image-snippet-workflow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hjerpbakk/get-image-snippet-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Fget-image-snippet-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Fget-image-snippet-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Fget-image-snippet-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Fget-image-snippet-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjerpbakk","download_url":"https://codeload.github.com/hjerpbakk/get-image-snippet-workflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Fget-image-snippet-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automator-workflow","html","image-snippet-workflow","images","lightbox","macos","python","service","workflow"],"created_at":"2024-11-28T02:29:58.262Z","updated_at":"2026-05-18T01:06:26.633Z","avatar_url":"https://github.com/hjerpbakk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Image Snippet Workflows\n\nThis repo contains two macOS workflows used to simplify adding images to blogposts on hjerpbakk.com.\n\n1. **Create hjerpbakk.com img folder.** This will create a hjerpbakk.com image folder with the same name as an image and move the image into the new folder.\n2. **Create hjerpbakk.com image snippet.** Given that an image is in its correct folder, this snippet will create images fitting predefined breakpoints and put the image snippet on the pasteboard, ready to be pasted in the post's Markdown source. The images will also be minified.\n\nThe flow is usually to rename an image to the name of the post, then run script number 1. Then move more images if needed to the folder created by script 1, then run script 2 on them. Remember to paste the snippet into the post between each run.\n\nThe generated HTML snippet supports both lazy loading and a lightbox.\n\n## Installation\n\nOn a clean install of macOS, do the following.\n\n0. Install [ImageOptim](https://imageoptim.com/mac) for maximum minification.\n1. Install pip:\n    ```shell\n    sudo easy_install pip\n    ```\n2. Install PIL through pip:\n    ```shell\n    sudo pip install pillow\n    ```\n3. Open the two workflows and choose `install`.\n\n## Usage\n\nRight click an image and choose any of these two services.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Fget-image-snippet-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjerpbakk%2Fget-image-snippet-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Fget-image-snippet-workflow/lists"}