fix: use jpg as a fallback format#15243
Conversation
🦋 Changeset detectedLatest commit: ebc16da The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
We can check |
We could skip doing that if the extension is |
I don't think that's necessary, I've just looked at the source code and vite-imagetools caches the metadata object and later uses it itself to clamp the sizes to the intrinsic size of the image, unless allowUpscale is passed. So if we don't read the metadata it will be read later anyways. |
It looks like that's only true if |
|
|
|
is there anything else? i think this can be merged |
57df156 to
2cf810f
Compare
closes #15242
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits