Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Duplicate
-
4.2.2
-
None
-
None
-
'PM sprint- continuous
Description
There are a few concerns regarding variants created when users upload SVG images and our image cropper.
The original image reports 0 width and height, so the cropper assumes the target variant dimensions (for any variant) are larger than the size of the original image, and if upscaling is disabled, the cropper is disabled.
Enabling upscaling leads to more problems, cause then the cropper is enabled but an attempt to crop an svg variant fails with
ERROR [ImageCropEditorDialog.onOk:324] Unable to create thumbnail image
INFO org.hippoecm.frontend.plugins.gallery.model.GalleryException: Unsupported MIME type for reading: image/svg+xml
INFO at org.hippoecm.frontend.plugins.gallery.editor.ImageCropEditorDialog.onOk(ImageCropEditorDialog.java:273)
The above makes sense if one sees how the cropper looks for svg variants, the cropping mask is 0x0 pixels and not usable.
What does cropping an svg mean? Since this is not a raster graphics, generating crops probably needs to happen via changing settings in the variant, like width and height, clips and masks.
Attachments
Issue Links
- relates to
-
CMS-10736 Improvements for our support for SVG image uploads
- Closed