{"id":26266087,"url":"https://github.com/calvin-ll/vue-image-modernizer","last_synced_at":"2025-04-30T16:46:36.414Z","repository":{"id":38357304,"uuid":"326767639","full_name":"Calvin-LL/vue-image-modernizer","owner":"Calvin-LL","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-13T13:14:39.000Z","size":3952,"stargazers_count":3,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T09:16:53.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Calvin-LL.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":"2021-01-04T18:03:39.000Z","updated_at":"2022-02-11T01:04:03.000Z","dependencies_parsed_at":"2023-02-09T15:46:24.267Z","dependency_job_id":null,"html_url":"https://github.com/Calvin-LL/vue-image-modernizer","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fvue-image-modernizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fvue-image-modernizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fvue-image-modernizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fvue-image-modernizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calvin-LL","download_url":"https://codeload.github.com/Calvin-LL/vue-image-modernizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251747770,"owners_count":21637404,"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":"2025-03-14T03:16:48.212Z","updated_at":"2025-04-30T16:46:36.394Z","avatar_url":"https://github.com/Calvin-LL.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-image-modernizer\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=flat)](https://opensource.org/licenses/MIT)\n\n## Plugins\n\n- [vue-cli-plugin](https://github.com/Calvin-LL/vue-image-modernizer/tree/main/packages/vue-cli-plugin-image-modernizer)\n\n- vite(WIP)\n\n## Introduction\n\nA Vue plugin to add `srcset` for your `\u003cimg\u003e` tags.\n\nvue-image-modernizer is designed to modernize `\u003cimg\u003e` tags in Vue by compressing and generating smaller images for smaller devices and adding lazy loading.\n\nTurns\n\n```html\n\u003cimg src=\"./assets/image.png\" modernize /\u003e\n```\n\ninto\n\n```html\n\u003cpicture\u003e\n  \u003csource\n    type=\"image/webp\"\n    srcset=\"\n      /img/image.96ca2a6b.webp  480w,\n      /img/image.b8d83ae0.webp 1024w,\n      /img/image.2e087cdd.webp\n    \"\n  /\u003e\n  \u003csource\n    type=\"image/png\"\n    srcset=\"\n      /img/image.36182eec.png  480w,\n      /img/image.2e9b78f9.png 1024w,\n      /img/image.fca0d5a2.png\n    \"\n  /\u003e\n  \u003c!-- note that the src image is compressed --\u003e\n  \u003cimg src=\"/img/image.fca0d5a2.png\" loading=\"lazy\" /\u003e\n\u003c/picture\u003e\n```\n\nor\n\n```html\n\u003c!-- note that the src image is compressed --\u003e\n\u003cimg\n  src=\"/img/image.8ca0d54c.png\"\n  srcset=\"\n    /img/image.fee0513b.png  480w,\n    /img/image.47cb13c3.png 1024w,\n    /img/image.469969ed.png 1920w,\n    /img/image.de3644eb.png 2560w,\n    /img/image.8ca0d54c.png\n  \"\n  loading=\"lazy\"\n/\u003e\n```\n\nor\n\n```html\n\u003c!-- note that the src image is compressed --\u003e\n\u003cimg src=\"/img/image.8ca0d54c.png\" loading=\"lazy\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvin-ll%2Fvue-image-modernizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalvin-ll%2Fvue-image-modernizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvin-ll%2Fvue-image-modernizer/lists"}