{"id":15749784,"url":"https://github.com/timonvs/image-bitmap-reproduction","last_synced_at":"2025-03-31T07:14:37.469Z","repository":{"id":85910390,"uuid":"557280965","full_name":"TimonVS/image-bitmap-reproduction","owner":"TimonVS","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-25T12:27:08.000Z","size":3689,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:49:03.629Z","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/TimonVS.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":"2022-10-25T12:03:49.000Z","updated_at":"2023-03-07T03:24:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f53c5610-80b5-4404-b7e2-3c04851951f2","html_url":"https://github.com/TimonVS/image-bitmap-reproduction","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/TimonVS%2Fimage-bitmap-reproduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fimage-bitmap-reproduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fimage-bitmap-reproduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fimage-bitmap-reproduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimonVS","download_url":"https://codeload.github.com/TimonVS/image-bitmap-reproduction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429493,"owners_count":20775808,"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":"2024-10-04T06:20:29.953Z","updated_at":"2025-03-31T07:14:37.448Z","avatar_url":"https://github.com/TimonVS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## `createImageBitmap` issue reproduction\n\n`createImageBitmap` behaves weirdly with JPEG images with an EXIF orientation other than 1.\n\n## Setup\n\n1. Run `npm install`\n2. Run `npm start` to start the server\n\n## Results\n\n### Chrome 106\n\n`Image` --\u003e `ImageBitmap` is cut off when `dWidth` and `dHeight` is provided to `ctx.drawImage`, it's stretched when `dWidth` and `dHeight` is omitted from the `ctx.drawImage`. Additionally, the image dimensions are flipped.\n\nAdding `img.crossOrigin = 'anonymous'` to `fetchImage` seems to resolve the issue.\n\n![](media/chrome_106.png)\n\n### Safari 16.1\n\n`Blob` --\u003e `ImageBitmap` is cut off, and EXIF orientation is not taken into account.\n\n![](media/safari_16.png)\n\n### Firefox 105\n\nExactly how it should be.\n\n![](media/firefox_105.png)\n\n### Safari Technical Preview 156 (16.4)\n\nExactly how it should be.\n\n![](media/safari_tp_156.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Fimage-bitmap-reproduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonvs%2Fimage-bitmap-reproduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Fimage-bitmap-reproduction/lists"}