XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.0.0
    • 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

        Acceptance criteria

              ricardo.gonzalez ricardo gonzalez
              rgange Richard Gange
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.25d
                    0.25d