Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image metadata generation #7510

Conversation

Mrowa96
Copy link
Contributor

@Mrowa96 Mrowa96 commented Jun 28, 2023

Changes

Fixes #7442

  • Error was only happening with squoosh, not with sharp
  • It was affecting both Image and Picture components
  • It was caused because metadata function is called with /@astroimage/... src after transformations are done. But fileURLToPath cannot accept this kind of url and it throws an error.

Testing

Manually, here are the results.
Before:
image
After:
image

Docs

Api didn't change so I don't think there is a need to update the docs.

@changeset-bot
Copy link

changeset-bot bot commented Jun 28, 2023

🦋 Changeset detected

Latest commit: 2fd73e3

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Jun 28, 2023
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@natemoo-re natemoo-re merged commit 4256409 into withastro:main Jun 30, 2023
@astrobot-houston astrobot-houston mentioned this pull request Jun 30, 2023
matthewp pushed a commit that referenced this pull request Jul 11, 2023
* Fix problem where image metadata generation throwed error when provided url started with /@astroimage

* Remove unnecessary changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<Picture /> ignoring src's IFD0:Orientation metadata
2 participants