{"id":21239218,"url":"https://github.com/tinacious/angular-svg-png","last_synced_at":"2025-03-15T03:40:34.217Z","repository":{"id":15496497,"uuid":"18230376","full_name":"tinacious/angular-svg-png","owner":"tinacious","description":"AngularJS directive for detecting SVG support and providing a PNG fallback for unsupported browsers.","archived":false,"fork":false,"pushed_at":"2014-11-13T00:29:10.000Z","size":280,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T02:08:19.001Z","etag":null,"topics":["a11y","accessibility","angularjs","ie","ie7","ie8","ie9","responsive-web-design"],"latest_commit_sha":null,"homepage":"","language":null,"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/tinacious.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":"2014-03-29T00:11:54.000Z","updated_at":"2020-11-15T22:01:49.000Z","dependencies_parsed_at":"2022-08-30T20:00:48.617Z","dependency_job_id":null,"html_url":"https://github.com/tinacious/angular-svg-png","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fangular-svg-png","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fangular-svg-png/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fangular-svg-png/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fangular-svg-png/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinacious","download_url":"https://codeload.github.com/tinacious/angular-svg-png/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243680974,"owners_count":20330154,"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":["a11y","accessibility","angularjs","ie","ie7","ie8","ie9","responsive-web-design"],"created_at":"2024-11-21T00:42:30.350Z","updated_at":"2025-03-15T03:40:34.195Z","avatar_url":"https://github.com/tinacious.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVG to PNG fallback in AngularJS\n\nThis Angular directive will automatically replace the file extension `*.svg` with `*.png` for browsers that do not support SVG.\n\nModernizr is a dependency for SVG support detection.\n\n\n## Usage\n\nYou can install **angular-svg-png** and its dependency (Modernizr) as well as inject it in your project using the following command:\n\n```bash\nbower install angular-svg-png --save\ngrunt bower-install\n```\n\nAfter install, add `svgPng` to your app's dependencies.\n\nThe screenshot below shows an SVG image being swapped out for a PNG.\n\n![](angular-svg-png-screenshot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fangular-svg-png","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinacious%2Fangular-svg-png","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fangular-svg-png/lists"}