Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-671

ImageService auto resize improvements

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 3.2.0
    • Component/s: sf server
    • Labels:

      Description

      Some images contain invalid meta data (namely colour coding) that makes java standard Image resizing capabilities fail. This happens during ImageService.resizeImage() call as firstly we need to load the image and this fails.

      In order to handle this gracefully we need to simply not do the resizing and just copy the original image. This way the image will not get resized but it will show up. Provided that markup on the storefront is done correctly (i.e. via specific width/height in css style or class with width set to 100%) this will scale properly in the page. The downside is that page loads may be slower as we load full size image rather than small ones.

        Attachments

          Activity

            People

            • Assignee:
              denis Denis Pavlov
              Reporter:
              denis Denis Pavlov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: