We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 366c36b commit 80cc0bdCopy full SHA for 80cc0bd
apps/builder/app/routes/cgi.image.$.ts
@@ -73,8 +73,9 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
73
// Use the format from URL parameters instead of hardcoding "auto"
74
// This allows getAssetUrl() to specify format=raw for SVGs and other non-optimizable formats
75
const imgHref = wsImageLoader({
76
- src: name,
77
...imageParameters,
+ src: name,
78
+ format: imageParameters.format === "raw" ? "raw" : "auto",
79
});
80
81
const imgUrl = new URL(env.RESIZE_ORIGIN + imgHref);
0 commit comments