{"id":24228747,"url":"https://github.com/blacha/sharp-webp-resize","last_synced_at":"2026-05-09T11:38:25.105Z","repository":{"id":266749623,"uuid":"899233484","full_name":"blacha/sharp-webp-resize","owner":"blacha","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-05T22:49:50.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T11:47:01.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-05T21:33:38.000Z","updated_at":"2024-12-05T22:49:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"dcbd4c41-aa42-4e8c-98a0-b119a56f1faf","html_url":"https://github.com/blacha/sharp-webp-resize","commit_stats":null,"previous_names":["blacha/sharp-webp-resize"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fsharp-webp-resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fsharp-webp-resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fsharp-webp-resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fsharp-webp-resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacha","download_url":"https://codeload.github.com/blacha/sharp-webp-resize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241809571,"owners_count":20023783,"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-01-14T11:32:36.904Z","updated_at":"2026-05-09T11:38:20.060Z","avatar_url":"https://github.com/blacha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastShrinkOnLoad imagery artifacts\n\nWhen greatly resizing image with `fastShrinkOnLoad:true` produces edge artifacts with sharp borders\n\ngiven a source image 512x512 \n\n![](./source/source-9-497-324.tiff.webp)\n\nthen resizing down to 32x32, then blowing the image back to 128x128 produces the following outputs:\n\n![](./output/32_default@8.png)\n\nTurning off fastShrinkOnLoad reduces the artifacts but introduces new ones\n\n![](./output/32_shrink_false@8.png)\n\nSwitching to Mitchell kernel reduces the white of lanczos\n\n![](./output/32_shrink_false_mitchell@8.png)\n\nFilling in the background with a consistent color also fixes the shrink on load\n\n![](./output/background@8.png)\n\n\n### Usage\n\n\nInstall dependencies\n\n```\nnpm install\n```\n\ngenerate the images\n\n```\nnode index.mjs\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fsharp-webp-resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacha%2Fsharp-webp-resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fsharp-webp-resize/lists"}