Questions tagged [photoswipe]

PhotoSwipe is a JavaScript image gallery for mobile and desktop, modular, framework independent.

PhotoSwipe is a javascript-based image gallery for mobile and touch devices. The source code is available on GitHub.

350 questions
2
votes
3 answers

How can I get directive to fire after view loaded?

I know this has been asked a thousand time, but I think I've tried every solution I've read and I can't seem to get it to work. I have an API from which I'm getting my images, after pulling the images into the view I want them to use photoswipe for…
Bunkered
  • 309
  • 1
  • 3
  • 12
2
votes
1 answer

Photoswipe Thumbnail Image Size Issues - Trying to Resize Thumbnails for Uniform Look

I'm having an image sizing issue with Photoswipe. Basically, this is how my photo gallery looks like now: http://img4.imageshack.us/img4/8431/problemeq.png There are gaps in between my photos that I have inserted. I'm basically not using…
Con Antonakos
  • 1,735
  • 20
  • 23
2
votes
0 answers

Photo Swipe, Add External Link to Images within .js file

I'm new to PhotoSwipe, getting very confused about how to add an external link to image this is the .js file I used to load images, however, it only has url and caption, instance = PhotoSwipe.attach( [ { url: 'img/picture1.jpg', caption: 'Image…
2
votes
0 answers

How can you save images with a long press using photoswipe via mobile app?

I am creating a mobile app using photoswipe and have put together my galleries, etc. Now I would like to incorporate a way for the user to be able to longpress the image and get the option to save, wallpaper, etc. Is anyone familiar with the best…
2
votes
1 answer

Jquery Mobile Photoswipe can't handle external pages

I think I found a bug in Photoswipe and I need some help. The following code is a page made for a mobile application that uses Photoswipe. On a single html file you have the two pages and all works fine:
2
votes
3 answers

Photoswipe + JQM: back event issue

$(document).on("pagecreate", function() { $.jsonp({ url: 'URL_TO_GET_JSONP', callbackParameter: 'get_photo', success: function(json, status) { var photo = []; …
Despicable ME
  • 36
  • 1
  • 3
2
votes
1 answer

How do I use event handlers in photoswipe using the jquery-mobile interface

I'm trying to do some image manipulation stuff depending on arbitrary data i've assocaied with my gallery. gallery.html(''); $.each(data.photos, function(key, photo) { var item = "
  • Brian
    • 4,328
    • 13
    • 58
    • 103
  • 1
    vote
    0 answers

    photoswipe kills selectbox on android 2.3.x

    When a photoswipe instance is shown on a page, none of the selectboxes on that same page work anymore on an android 2.3.x (2.3.3 tested in an emulator, 2.3.5 tested on Galaxy S2). When thumbstrip_z.show(0); is commented in the script below the…
    1
    vote
    1 answer

    How can I use both the PhotoSwipe 5v, 'dynamic caption plugin' and 'video plugin' together?

    I can't get 'photoswipe-video-plugin' to work with 'photoswipe-dynamic-caption-plugin...' Photoswipe Video Plugin: https://github.com/dimsemenov/photoswipe-video-plugin Photoswipe Dynamic Caption…
    after.div
    • 21
    • 4
    1
    vote
    1 answer

    How to import PhotoSwipe with Rails and Importmap

    I've pinned photoswipe: ./bin/importmap pin photoswipe --download in app/javascript/application.js I've added import PhotoSwipeLightbox from 'photoswipe' document.addEventListener("turbo:load", function() { const lightbox = new…
    Mark Robinson
    • 1,479
    • 2
    • 15
    • 34
    1
    vote
    1 answer

    Razor App - PhotoSwipe Opening Images In A New Tab

    I have a Razor app where Lightbox2 was previously used for image galleries in the app. Now, I want to make a change to use PhotoSwipe instead. I started off by following the documentation on the official site:…
    MERNboy
    • 125
    • 14
    1
    vote
    1 answer

    Add alt tag as a caption to Photoswipe gallery using in WordPress

    We use Photoswipe js plugin on our WordPress website for lightbox gallery. Everything is working fine, but I'd like to use alt tag of image as a caption in lightbox, but I don't know how. I though it should add alt tag to caption automatically, but…
    StepanP
    • 33
    • 4
    1
    vote
    1 answer

    react photoswipe gallery of thumbnails will not display as grid

    I'm using photoswipe gallery. When I do so, I get all the thumbnails in a single line... I would like them to fill the page like a grid. Below is my react component code. I have noticed that if I go to each thumbnail in dev tools->inspect and…
    lowcrawler
    • 6,777
    • 9
    • 37
    • 79
    1
    vote
    1 answer

    Custom downloading image in PhotoSwipe.js

    I am using PhotoSwipe gallery for my project. On the line 175 there is a code url:items[0].hqImage, I want to use index of current image instead of 0, how can I do that? I've tried to use pswp.listen('afterChange', function() { }); event, like…
    1
    vote
    0 answers

    Failing to load local images from JSON in Vue

    this is pretty straightforward. In my Vue app I am using picture-swipe to set my content in a gallery. and I want to fetch all the different elements from an…