When displaying a svg file either after adding the file in the browser or loading an existing image from the server, the height of the preview is set to imagePreviewMaxHeight instead of using the height defined in the svg file.
For example, a .svg file containing height="40px" width="40px" gets stretched to the default imagePreviewMaxHeight value of 256px.
Reproduction
Using filepond-plugin-image-preview, add a .svg file with height defined in the file.
Is there an existing issue for this?
Have you updated FilePond and its plugins?
Describe the bug
When displaying a svg file either after adding the file in the browser or loading an existing image from the server, the height of the preview is set to
imagePreviewMaxHeight
instead of using the height defined in the svg file.For example, a .svg file containing
height="40px" width="40px"
gets stretched to the defaultimagePreviewMaxHeight
value of 256px.Reproduction
Using
filepond-plugin-image-preview
, add a .svg file with height defined in the file.React component using
react-filepond
:Environment