You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requesting an SVG source file without specifying an output format is allowed — it returns the SVG file unmodified (or optimised, if SVGO is enabled).
But requesting an SVG source file and explicitly specifying svg as the output format produces a JPEG output file.
This is because other file types cannot be converted to SVG, so svg is not listed in SUPPORTED_FORMATS and unsupported formats are transformed to jpeg.
The logic ought to be amended so that SVG -> SVG is acceptable.
Uh oh!
There was an error while loading. Please reload this page.
Environment
ipx v3.0.3
Reproduction
n/a
Describe the bug
Requesting an SVG source file without specifying an output format is allowed — it returns the SVG file unmodified (or optimised, if SVGO is enabled).
But requesting an SVG source file and explicitly specifying
svg
as the output format produces a JPEG output file.This is because other file types cannot be converted to SVG, so
svg
is not listed inSUPPORTED_FORMATS
and unsupported formats are transformed tojpeg
.The logic ought to be amended so that SVG -> SVG is acceptable.
Additional context
The relevant logic is here:
ipx/src/ipx.ts
Lines 224 to 252 in af698d0
Logs
The text was updated successfully, but these errors were encountered: