-
Notifications
You must be signed in to change notification settings - Fork 538
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
Broken SVG returned if not edits specified and Auto-WebP enabled #247
Comments
@marco910 Thanks for contacting us, and I'm sorry for your inconvenience. I recognized the issue, and the issue is related to WebP. It changes the type to WebP when WebP is supported on the browser. We'll fix this issue in the next update. Meanwhile, if you want to fix this one as soon as possible, you can fix the source code something like this. if (this.ContentType !== 'image/svg+xml' || this.edits.toFormat || this.outputFormat) {
let outputFormat = this.getOutputFormat(event);
if (this.edits && this.edits.toFormat) {
this.outputFormat = this.edits.toFormat;
} else if (outputFormat) {
this.outputFormat = outputFormat;
}
} Then, it will change the SVG files only when it needs to change the output format. |
@beomseoklee Perfect, now it's working. Thanks for your help! |
We have added the above fix to v5.2.0. |
@G-Lenz I'm using v6.0.0 but It's still producing an error.
|
The same for me with version v6.0.0. It seems that you have to provide empty edits :
At least it is working for me then. |
Describe the bug
If I'm requesting an SVG via the Image Handler and do not specify any edits to request (because I want to get the original SVG) I'm getting a broken WebP/SVG image as a response. (Broken means in this case that the SVG isn't display. Instead, a message appears that the image contains errors.) If I try to request the SVG with a browser, that doesn't support WebP, such as Safari, I'm getting the correct SVG with no problem.
To Reproduce
Expected behavior
If I'm requesting a SVG via the Image Handler and do not specify any edits to request I want to get the original SVG and not a WebP. In browsers such as Safari, which do not support WebP, I'm getting the correct SVG.
Please complete the following information about the solution:
Screenshots
Example SVG: https://images.feicht.media/99999/99999-9-20200927_website_ui-ux.svg
The text was updated successfully, but these errors were encountered: