Leesson / V Photoswipe
Licence: mit
Vue plugin for image preview base on PhotoSwipe
Stars: ✭ 25
Projects that are alternatives of or similar to V Photoswipe
Vue Picture Input
Mobile-friendly picture file input Vue.js component with image preview, drag and drop, EXIF orientation, and more
Stars: ✭ 862 (+3348%)
Mutual labels: image, preview
Kiimagepager
The KIImagePager is inspired by foursquare's ImageSlideshow, the user may scroll through images loaded from the Web
Stars: ✭ 324 (+1196%)
Mutual labels: image, preview
Goscraper
Golang pkg to quickly return a preview of a webpage (title/description/images)
Stars: ✭ 72 (+188%)
Mutual labels: image, preview
File Upload With Preview
🖼 A simple file-upload utility that shows a preview of the uploaded image. Written in pure JavaScript. No dependencies. Works well with Bootstrap 4 or without a framework.
Stars: ✭ 352 (+1308%)
Mutual labels: image, preview
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (+216%)
Mutual labels: image, preview
Vue Preview
A Vue Integrated PhotoSwipe Image Preview Plugin
Stars: ✭ 639 (+2456%)
Mutual labels: image, preview
React Native Cached Image
CachedImage component for react-native
Stars: ✭ 890 (+3460%)
Mutual labels: image
Py Style Transfer
🎨 Artistic neural style transfer with tweaks (pytorch).
Stars: ✭ 23 (-8%)
Mutual labels: image
Cdpimagecrop
CDPImageCrop can zoom,move and crop a image and automatically save into the album,details see demo.
Stars: ✭ 6 (-76%)
Mutual labels: image
Shadowimageview
A apple music cover picture shadow style image library
Stars: ✭ 781 (+3024%)
Mutual labels: image
React Image
React.js <img> tag rendering with multiple fallback & loader support
Stars: ✭ 917 (+3568%)
Mutual labels: image
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (+2948%)
Mutual labels: image
Nyx
A simple imageboard with no javascript or dependencies written in Go
Stars: ✭ 19 (-24%)
Mutual labels: image
Vue PhotoSwipe
PhotoSwipe, PhotoSwipeGallery component for Vuejs base on PhotoSwipe.
Installation
NPM
npm install --save v-photoswipe
Usage
Template
<template>
<div>
<div class="paragraph">
<h3>PhotoSwipe</h3>
<div>
<img @click="showPhotoSwipe(0)" src="https://farm4.staticflickr.com/3894/15008518202_c265dfa55f_h.jpg" alt="">
<img @click="showPhotoSwipe(1)" src="https://farm4.staticflickr.com/3902/14985871946_24f47d4b53_h.jpg" alt="">
</div>
</div>
<div class="paragraph">
<h3>PhotoSwipe Gallery</h3>
<div>
<v-photoswipe-gallery :isOpen="isOpenGallery" :options="optionsGallery" :items="items">
<img slot-scope="props" :src="props.item.src" alt="picture"/>
</v-photoswipe-gallery>
</div>
</div>
<v-photoswipe :isOpen="isOpen" :items="items" :options="options" @close="hidePhotoSwipe"></v-photoswipe>
</div>
</template>
JS
import { PhotoSwipe, PhotoSwipeGallery } from 'v-photoswipe'
export default {
components: {
'v-photoswipe': PhotoSwipe,
'v-photoswipe-gallery': PhotoSwipeGallery
},
data () {
return {
isOpen: false,
isOpenGallery: false,
options: {
index: 0
},
optionsGallery: {},
items: [
{
src: 'https://farm4.staticflickr.com/3894/15008518202_c265dfa55f_h.jpg',
w: 1600,
h: 1600,
title: 'This is dummy caption.'
}, {
src: 'https://farm4.staticflickr.com/3902/14985871946_24f47d4b53_h.jpg',
w: 1600,
h: 1066,
title: 'This is dummy caption. It has been placed here solely to demonstrate the look and feel of finished, typeset text.'
}
]
}
},
methods: {
showPhotoSwipe (index) {
this.isOpen = true
this.$set(this.options, 'index', index)
},
hidePhotoSwipe () {
this.isOpen = false
}
}
}
Props
PhotoSwipe & PhotoSwipeGallery
Name | Type | Default | Required | Description |
---|---|---|---|---|
isOpen | Boolean | false | true | |
items | Array | [] | true | Document |
options | Object | {} | fasle | Document |
beforeChange | Function | Photoswipe event listener | ||
afterChange | Function | Photoswipe event listener | ||
imageLoadComplete | Function | Photoswipe event listener | ||
resize | Function | Photoswipe event listener | ||
gettingData | Function | Photoswipe event listener | ||
mouseUsed | Function | Photoswipe event listener | ||
initialZoomIn | Function | Photoswipe event listener | ||
initialZoomInEnd | Function | Photoswipe event listener | ||
initialZoomOut | Function | Photoswipe event listener | ||
initialZoomOutEnd | Function | Photoswipe event listener | ||
parseVerticalMargin | Function | Photoswipe event listener | ||
close | Function | Photoswipe event listener | ||
unbindEvents | Function | Photoswipe event listener | ||
destroy | Function | Photoswipe event listener | ||
updateScrollOffset | Function | Photoswipe event listener | ||
preventDragEvent | Function | Photoswipe event listener | ||
shareLinkClick | Function | Photoswipe event listener |
Slot
PhotoSwipeGallery
Name | Type | Default | Required | Description |
---|---|---|---|---|
item | Object | HTML Img Tag | false |
Demo
coming soon...
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].