-
Bug
-
Resolution: Done
-
Critical
-
3.0.32
-
None
Since WebP images are a bit different we cannot get the dimensions using org.devlib.schmidt.imageinfo.ImageInfo as we do when uploading to the dam using JcrAssetUploadAction.
Â
If you go to our demo and upload any WebP image you will see they are missing dimensions.
For example,
In the export the height and width are both -1 value.
dam.tours.example..webp.xml
Dev notes:
org.devlib.schmidt.imageinfo.ImageInfo is quite old and not maintained.
We could use instead
Optional<BufferedImage> bufferedImage = Optional.ofNullable(ImageIO.read(file)); bufferedImage.map(BufferedImage::getWidth)
If the BufferedImage does not read the whole image in memory.
Â
Also check for dimensions in the video files
- is cloned by
-
MGNLDAM-1456 Backporting 6.2 - WebP Dimensions
- Closed
- is duplicated by
-
MGNLIMG-335 WEBP dimensions have no value
- Closed
- is related to
-
RESPDAM-75 Support metadata for webp images in AssetFocalReferenceResolver
- Open
-
MGNLDAM-1114 SVG Dimensions
- Open
- relates to
-
MGNLDAM-1418 Replacing images does not update the metadata's dimensions
- Closed
-
MGNLUI-8839 Preview missing for WebP images - Detail subapp
- Closed