{"id":18697786,"url":"https://github.com/magicoder10/react-progressive-image","last_synced_at":"2025-07-14T19:45:21.751Z","repository":{"id":57152972,"uuid":"170473168","full_name":"magicoder10/react-progressive-image","owner":"magicoder10","description":"Progressive image loading component for React","archived":false,"fork":false,"pushed_at":"2019-02-23T19:51:23.000Z","size":17061,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-27T22:36:40.738Z","etag":null,"topics":["javascript-library","progressive-image","progressive-image-loading","react","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/magicoder10.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}},"created_at":"2019-02-13T08:49:26.000Z","updated_at":"2020-07-20T08:57:15.000Z","dependencies_parsed_at":"2022-09-03T18:40:44.668Z","dependency_job_id":null,"html_url":"https://github.com/magicoder10/react-progressive-image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2Freact-progressive-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2Freact-progressive-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2Freact-progressive-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2Freact-progressive-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicoder10","download_url":"https://codeload.github.com/magicoder10/react-progressive-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223504424,"owners_count":17156320,"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":["javascript-library","progressive-image","progressive-image-loading","react","reactjs"],"created_at":"2024-11-07T11:25:44.785Z","updated_at":"2024-11-07T11:25:45.294Z","avatar_url":"https://github.com/magicoder10.png","language":"TypeScript","readme":"# React Progressive Image\nProgressive image loading component for React\n\n[![Build Status](https://travis-ci.com/byliuyang/react-progressive-image.svg?branch=master)](https://travis-ci.com/byliuyang/react-progressive-image)\n\n## Preview\n![Progressive Image Loading](screenshots/1.gif)\n\n## Features\n- Lazy load image when it's visible in the viewport\n- Progressively load image with animation\n\n## Future plan\n- [In Progress] Build a website to help people generate thumbnail from the original image.\n- Provide hosting service for both image assets.\n- Generate React \u0026 Angular progressive image loading code based on the hosted URLs.\n\n## Usage\n\nInstall npm package\n\n```\nyarn add @time4hacks/react-progressive-image\n```\n\nImport `Progressive Image Component`, `BrowserImageLoader`, and `BrowserViewport`:\n\n```typescript\nimport {\n\tProgressiveImage, \n\tBrowserImageLoader, \n\tBrowserViewport\n} from '@time4hacks/react-progressive-image';\n```\n\nInitialize Viewport and ImageLoader\n\n```typescript\nconst imageLoader = new BrowserImageLoader();\nconst viewport = new BrowserViewport();\n```\nAdd progressive image to your app:\n\n```typescript\n\u003cProgressiveImage\n    viewport={this.viewport}\n    imageLoader={this.imageLoader}\n\n    alt={'Test'}\n    thumbnailSrc={photoThumbnail}\n    imageSrc={photo}\n\n    onImageEnterViewport={this.handleImageEnterViewport}\n    onImageLeaveViewport={this.handleImageLeaveViewport}\n    onImageLoad={this.handleImageLoad}\n    onImageLoadingError={this.handleImageLoadingError}\n/\u003e\n```\n\nReplace `photoThumbnail` with the URL of thumbnail and `photo` with the URL of full resolution image. \nPlease remember to update `alt` to improve accessibility.\n\n## Development\nInstall library dependencies\n\n```\nyarn\n```\n\nStart library live re-bundle server\n```\nyarn start\n```\n\nInstall example dependencies and link library\n\n```\ncd example\nyarn\n```\n\nStart live reload web server\n```\nyarn start\n```\n\n## Testing\n### Running unit tests\n```\nyarn test\n```\n\n## Author\n- **Harry Liu** - *Initial work* - [byliuyang](https://github.com/byliuyang)\n\n## License\nThis library is maintained under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicoder10%2Freact-progressive-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicoder10%2Freact-progressive-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicoder10%2Freact-progressive-image/lists"}