{"id":21841164,"url":"https://github.com/abhiaagarwal/optimize-images","last_synced_at":"2025-10-08T08:31:29.014Z","repository":{"id":226784446,"uuid":"769633642","full_name":"abhiaagarwal/optimize-images","owner":"abhiaagarwal","description":"Pre-processes quarto images and figures and generates optimized versions","archived":false,"fork":false,"pushed_at":"2025-01-11T14:43:26.000Z","size":2755,"stargazers_count":6,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T15:37:16.073Z","etag":null,"topics":["quarto","quarto-extension","quarto-filter"],"latest_commit_sha":null,"homepage":"https://abhiaagarwal.github.io/optimize-images/","language":"Lua","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/abhiaagarwal.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-09T16:17:28.000Z","updated_at":"2025-01-07T12:11:43.000Z","dependencies_parsed_at":"2024-11-27T21:39:41.168Z","dependency_job_id":null,"html_url":"https://github.com/abhiaagarwal/optimize-images","commit_stats":null,"previous_names":["abhiaagarwal/optimize-images"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhiaagarwal%2Foptimize-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhiaagarwal%2Foptimize-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhiaagarwal%2Foptimize-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhiaagarwal%2Foptimize-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhiaagarwal","download_url":"https://codeload.github.com/abhiaagarwal/optimize-images/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235694190,"owners_count":19030772,"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":["quarto","quarto-extension","quarto-filter"],"created_at":"2024-11-27T21:29:18.251Z","updated_at":"2025-10-08T08:31:22.605Z","avatar_url":"https://github.com/abhiaagarwal.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# optimize-images Extension For Quarto\n\nOptimizes images in quarto-based documents using `libvips` to save bandwidth.\n\n## Installing\n\nThis library requires [`libvips`](https://www.libvips.org/) to be in your path. See their [installation instructions](https://www.libvips.org/install.html) to install it on your local machine.\n\nThen,\n```bash\nquarto add abhiaagarwal/optimize-images\n```\n\nThis will install the extension under the `_extensions` subdirectory.\nIf you're using version control, you will want to check in this directory.\n\n## Using\n\nThis extension works by walking the Quarto AST of every single element and when it encounters an image, uses `libvips` to generate webp optimized images that will be served on your browser. It also generates multiple copies to be used with [responsive images](https://web.dev/articles/serve-responsive-images), serving images appropriate for your reader's device.\n\nThus, you are able to keep your original images in source control while your website deploys optimized copies.\n\nTODO: Add Caching\n\n## Example\n\nHere is the source code for a minimal example: [example.qmd](example.qmd).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhiaagarwal%2Foptimize-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhiaagarwal%2Foptimize-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhiaagarwal%2Foptimize-images/lists"}