Announcement

#1 2022-04-24 18:22:16

BigIsland270972
Member
Norway
2022-03-15
374

[resolved] How to set the option to a higher MaxZoomLevel in Bootstrap Darkroom?

Hello/Hi/Greetings,

I'm following this guide to set the options:

https://stackoverflow.com/questions/403 … pe-gallery
AND they are explained here:
https://photoswipe.com/adjusting-zoom-level/

PROBLEM: Can't figure out where and in which files to alternate them.
Have tried to edit the photoswipe.min.js to no avail.
Best Regards
Robert

Piwigo URL: https://arkivfoto.net

    Piwigo 12.2.0 Se etter oppgradering
    Operativsystem: Linux
    PHP: 7.4.29 (Vis informasjon) [2022-04-24 16:19:36]
    MySQL: 5.5.5-10.3.28-MariaDB [2022-04-24 18:19:36]
    Grafikkbibliotek: External ImageMagick 6.9.10-86
    Cache størrelse 1570.7 Mo   kalkulert 4 uker siden Oppdater

Aktivert programtilleggsliste 59

    Add tags mass
    Additional Pages
    Admin Tools
    Advanced Menu Manager
    AStat.2
    Batch Downloader
    Batch Manager Prefilters
    Batch Manager, Photo Description
    Block search
    Contact 1 menu
    Contact Form
    Copyrights
    Download Permissions
    Exif View
    Extended Description
    External Reference
    FCK Editor
    Force HTTPS
    Grum Plugins Classes.3
    GThumb+
    Language Switch
    LocalFiles Editor
    Look_like_gbo2
    Manage Properties Photos
    Meta Open Graph
    NBM Subscriber
    No Stats For Robots
    OpenStreetMap
    Perso About
    Perso Footer
    Personal Favicon
    Photo Update
    Physical Photo Move
    Posted Date Changer
    Prepaid Credits
    prevnext
    Private Share
    Properties Mass Update
    PWG Stuffs
    Reply To
    rightClick
    Rotate Image
    RV autocomplete
    RV Thumb Scroller
    Scroll To Top
    Search links
    Social Buttons
    Social Connect
    SortOrders
    Subscribe To Comments
    Tag Groups
    Tag Recognition
    Theme Switch
    Thumbnail Tooltip
    Title
    Update Album
    URL Uploader
    User Collections
    VideoJS


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#2 2022-04-25 04:10:55

BigIsland270972
Member
Norway
2022-03-15
374

Re: [resolved] How to set the option to a higher MaxZoomLevel in Bootstrap Darkroom?

_photoswipe_js.tpl


        photoSwipe.listen('gettingData', function(index, item) {
            if(!item.is_video) {
              if( useLargeImages ) {
                  item.src = item.xlargeImage.src;
                  item.w = item.xlargeImage.w * 2;
                  item.h = item.xlargeImage.h * 2;
                  item.title = item.xlargeImage.title;
              } else {
                  item.src = item.largeImage.src;
                  item.w = item.largeImage.w * 2;
                  item.h = item.largeImage.h * 2;
                  item.title = item.largeImage.title;
              }
/* my upscale changes beginning */
        if ((item.w < photoSwipe.viewportSize.x) && (item.h < photoSwipe.viewportSize.y)){ /* only upscale too small images */

        /* calculate factor which results in an image size > viewport size (round up to next integer for integer values) */
        factor_width = Math.ceil(photoSwipe.viewportSize.x / item.w);
        factor_height = Math.ceil(photoSwipe.viewportSize.y / item.h);
       
        use_factor = Math.min(factor_width, factor_height); /* use smallest possible factor (one side bigger than viewport is enough) */
        item.w *= use_factor;
        item.h *= use_factor;
        }
        /* my upscale changes end */


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact