Problems with large images
  • Hello, Iam using ppGallery (it uses prettyPhoto for displaying images) and I've got problems when displaying large images (for example 7000x2000). Images are cut at the left side, it looks like there are only about 4K pixels displayed, left part of image is missing.
  • I had the same problem but I think I've managed to fix it. In the jquery.prettyPhoto.js file change the _showContent function.
    Add above $pp_pic_holder.animate

    $iw = 0;
    if((windowWidth/2) - (correctSizes['containerWidth']/2)>0){
    $iw = (windowWidth/2) - (correctSizes['containerWidth']/2);
    }

    And inside $pp_pic_holder.animate{ }
    change:
    'left': (windowWidth/2) - (correctSizes['containerWidth']/2),
    to:
    'left': $iw,

    Basicly what this does is find out if the script is going to assign it a negative value for 'left' and gives it '0' instead. Which means you can see the image if you scroll to the right.

    Hope this helps.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!