{"id":18209014,"url":"https://github.com/fyvfyv/reset-image-orientation","last_synced_at":"2026-02-28T08:34:35.306Z","repository":{"id":33983414,"uuid":"165396144","full_name":"fyvfyv/reset-image-orientation","owner":"fyvfyv","description":"Reset uploaded image orientation based on EXIF","archived":false,"fork":false,"pushed_at":"2025-02-28T19:00:06.000Z","size":97,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T16:17:03.397Z","etag":null,"topics":["base64","browser","exif","image","image-manipulation","img","orientation","reset"],"latest_commit_sha":null,"homepage":null,"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/fyvfyv.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":"2019-01-12T14:20:32.000Z","updated_at":"2024-12-02T19:12:59.000Z","dependencies_parsed_at":"2024-09-17T10:04:44.280Z","dependency_job_id":"6ab09e84-dece-4b43-aa09-de26c9cf267a","html_url":"https://github.com/fyvfyv/reset-image-orientation","commit_stats":{"total_commits":55,"total_committers":4,"mean_commits":13.75,"dds":0.4545454545454546,"last_synced_commit":"bba6b1605617372917eb0924d461d2734d53301c"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyvfyv%2Freset-image-orientation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyvfyv%2Freset-image-orientation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyvfyv%2Freset-image-orientation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyvfyv%2Freset-image-orientation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fyvfyv","download_url":"https://codeload.github.com/fyvfyv/reset-image-orientation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246860167,"owners_count":20845621,"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":["base64","browser","exif","image","image-manipulation","img","orientation","reset"],"created_at":"2024-11-03T14:03:49.003Z","updated_at":"2026-02-28T08:34:30.258Z","avatar_url":"https://github.com/fyvfyv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reset-image-orientation\nReset uploaded image orientation based on EXIF\n\n## Installation\n\n```sh\nnpm install reset-image-orientation\n```\n\n## Javascript example\n\n```javascript\nvar resetOrientation = require('reset-image-orientation');\n\nvar input = document.querySelector('input[type=\"file\"]');\nvar img = document.querySelector('img');\n\ninput.addEventListener('change', function(e) {\n    e.preventDefault();\n\n    var file = e.target.files[0];\n\n    resetOrientation.default()(file, function(base64) =\u003e {\n        img.src = base64;\n    });\n});\n```\n\n## Typescript example\n\n```typescript\nimport resetOrientation from 'reset-image-orientation';\n\nconst input = document.querySelector('input[type=\"file\"]');\nconst img = document.querySelector('img');\n\ninput.addEventListener('change', function(e: Event) {\n    e.preventDefault();\n\n    var file = e.target.files[0];\n\n    resetOrientation(file, function(base64: string) =\u003e {\n        img.src = base64;\n    });\n});\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyvfyv%2Freset-image-orientation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffyvfyv%2Freset-image-orientation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyvfyv%2Freset-image-orientation/lists"}