{"id":22876289,"url":"https://github.com/nidi3/jekyll-image_optimizer","last_synced_at":"2025-07-09T03:09:34.562Z","repository":{"id":25603177,"uuid":"29038214","full_name":"nidi3/jekyll-image_optimizer","owner":"nidi3","description":"A jekyll plugin to optimize images for the web","archived":false,"fork":false,"pushed_at":"2015-12-08T17:47:02.000Z","size":12,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T14:45:48.921Z","etag":null,"topics":["jekyll-plugin","optimize-images","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nidi3.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":"2015-01-09T22:29:21.000Z","updated_at":"2024-07-28T19:34:31.000Z","dependencies_parsed_at":"2022-08-24T09:51:13.568Z","dependency_job_id":null,"html_url":"https://github.com/nidi3/jekyll-image_optimizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nidi3/jekyll-image_optimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidi3%2Fjekyll-image_optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidi3%2Fjekyll-image_optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidi3%2Fjekyll-image_optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidi3%2Fjekyll-image_optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidi3","download_url":"https://codeload.github.com/nidi3/jekyll-image_optimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidi3%2Fjekyll-image_optimizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264384313,"owners_count":23599611,"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":["jekyll-plugin","optimize-images","ruby"],"created_at":"2024-12-13T15:13:54.489Z","updated_at":"2025-07-09T03:09:34.544Z","avatar_url":"https://github.com/nidi3.png","language":"Ruby","readme":"# jekyll-image_optimizer\nA jekyll plugin to optimize images for the web.\nIt reads all the images in a source directory and saves optimized versions of them to a destination directory\nand creates a symbolic link to the destination directory.\n\nInstall it with `gem install jekyll-image_optimizer`.\n\nAdd this to your `plugins/ext.rb` file: `require 'jekyll/image_optimizer'`.\n\nThe following options for `_config.yml` are available:\n\nOption | Description | Default value\n--- | --- | ---\n`raw_images` | the directory containing the unoptimized images | `img/raw`\n`opt_images` | the directory containing the optimized images | `img/opt`\n`images_link` | the name of the symbolic link pointing to `opt_images` | `images`\n`image_geometry` | the size all images should be, is an ImageMagick [geometry string](http://www.imagemagick.org/RMagick/doc/imusage.html#geometry) and may be an array | `800x800\u003e`\n`image_hash` | if the optimized image files should be appended with a hash to enable unlimited caching | `true`\n`image_layout` | the file containing the template for the `image` tag (inside `_layouts` folder) | `image.html`\n\nThe plugin defines two liquid tags: `srcset` and `image`.\nTo include an image with multiple resolutions (using [scrset](http://ericportis.com/posts/2014/srcset-sizes/)) into a post, do the following:\n\nIn `_layouts/image.html` define the template of an image. For example:\n```\n\u003cimg srcset=\"{% srcset {{image.index}} %}\" alt=\"{{image.alt}}\"/\u003e\n```\n\nIn the front matter of the post, add\n```\nimage:\n    -   url: my_image.jpg\n        alt: My Alt\n        layout: my-image.html\n```\n\nand reference the image using `{% image 0 %}` where 0 is the index of the image.\nThe optional `layout` parameter overwrites the `image_layout` parameter in `_config.yml`.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidi3%2Fjekyll-image_optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidi3%2Fjekyll-image_optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidi3%2Fjekyll-image_optimizer/lists"}