High format pictures cannot be displayed properly in Image Gallery module

Created:

2016-12-18 06:54:48 UTC

Modified:

2017-08-16 16:45:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

High format pictures cannot be displayed properly in Image Gallery module

Applicable to:

  • Web Presence Builder for Linux

Symptoms

In Image Gallery preview vertical thumbnails are scaled instead to be shown fully. Only some part of image is shown.

Cause

This is Plesk internal issue with id #PPB-4497 .

Resolution

  • Access Web Presence Builder working directory:

    # cd /usr/local/sb/
  • Download a patch

    # wget https://support.plesk.com/hc/article_attachments/115004351025/ppb-12.0.8-plesk-patch-4497.zip
  • Made a backup of files which will be replaced:

    # cp htdocs/site_resources/modules/imagegallery/imagegallery.js{,_backup_$(date +%y-%m-%d)}
    # cp include/SB/Widget/Imagegallery/Storage/Local.php{,_backup_$(date +%y-%m-%d)}
  • Unzip downloaded archive with replace option:

    # unzip ppb-12.0.8-plesk-patch-4497.zip

NOTE it is needed to clear web browser cache and republish the website. Provided patch will not fix previously uploaded images and suitable only for Large thumbnail size.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.