mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #75] Image transformations break SVG's #20
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JustJoostNL on GitHub (Feb 25, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/75
Currently when trying to show a local SVG:
[vinext] Image optimization error: Error: IMAGES_TRANSFORM_ERROR 9412: Could not resize the image: The requested file is not an image. Please make sure the server always serves an image (e.g. not an error page, or a login page)@JustJoostNL commented on GitHub (Feb 25, 2026):
And also:
This ReadableStream is disturbed (has already been read from), and cannot be used as a body.@southpolesteve commented on GitHub (Feb 26, 2026):
Fixed in v0.0.10. SVGs are now properly handled in the image optimization pipeline instead of being passed through to the Cloudflare Images transform API (which can't rasterize them). See PR #101.
@JustJoostNL commented on GitHub (Feb 26, 2026):
@southpolesteve When rendering a SVG now, I get this:
The requested resource is not an allowed image type, I think it would be better to just return the SVG instead? Otherwise it would be impossible.Request path was: _vinext/image?url=/icon.svg