sarriaroman / photoviewer

PhotoViewer Cordova Plugin
MIT License
155 stars 202 forks source link

Photo Viewer

This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features.

How to Install

Cordova:

cordova plugin add com-sarriaroman-photoviewer

Ionic 2:

$ ionic cordova plugin add com-sarriaroman-photoviewer
$ npm install --save @ionic-native/photo-viewer

Android

Out of the box

iOS

Out of the box

API

Show an image

PhotoViewer.show('http://my_site.com/my_image.jpg', 'Optional Title');

You have to pass as third parameter the following options as object.

Options:

Usage
var options = {
    share: true, // default is false
    closeButton: false, // default is true
    copyToReference: true, // default is false
    headers: '',  // If this is not provided, an exception will be triggered
    piccasoOptions: { } // If this is not provided, an exception will be triggered
};

PhotoViewer.show('http://my_site.com/my_image.jpg', 'Optional Title', options);

Versions

(1.0.2) Removed Podfile and the dependency
(1.1.0)

(1.1.1)

(1.1.2)

(1.1.3)

(1.1.4)

(1.1.5)

(1.1.7)

(1.1.9/10)

(1.1.17)

(1.1.9)

(1.1.21)

(1.1.22)

(1.2.0)

(1.2.1)

(1.2.2)

(1.2.3)

(1.2.4)

(1.2.5)