Victor Fagerström
Posts: 0
Joined: Sun Dec 01, 2013 1:03 pm

Image zoomable?

Can I/HOW can I make an image zoomable?

As of now I'm opening a popup when clicking on a image. the popup contains only a image with size h 100% / w 100%. I want user to be able to zoom on this image.

V

Victor Fagerström
Posts: 0
Joined: Sun Dec 01, 2013 1:03 pm

Image zoomable?

I've read some posts on the same topic and it seems I have to downoad a zoom plugin, right? this one for example http://www.elevateweb.co.uk/image-zoo...
Say I download this plugin from their webpage, how do I get the downloaded files into Appery project?
Looking at photoswipe tutorial, provided by you, I can add http://www.photoswipe.com/latest/code... and http://www.photoswipe.com/latest/lib/... as external resourses to project. Is this the way i should add my plugin as well, in that case, which url should be used?

I feel really confused right now, please enlighten me :)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Image zoomable?

Hi Victor,

For example, for elevateZoom download a file jquery.elevatezoom.js and add it as custom JS. Then on page Load event run:preAppery("myimage").attr("data-zoom-image", path);
Appery("myimage").elevateZoom();/preWhere 'myimage' is name of Image component,
'path' is a path to an enlarged image.

Victor Fagerström
Posts: 0
Joined: Sun Dec 01, 2013 1:03 pm

Image zoomable?

Amazing, once again, blown away by this service.

Donald Charity
Posts: 0
Joined: Thu Feb 06, 2014 2:58 pm

Image zoomable?

Hello, I did exactly what was said to do here and I still get:

TypeError: Appery(...).elevateZoom is not a function

"For example, for elevateZoom download a file jquery.elevatezoom.js and add it as custom JS."

Donald Charity
Posts: 0
Joined: Thu Feb 06, 2014 2:58 pm

Image zoomable?

Hello, I did exactly what was said to do here and I still get:

TypeError: Appery(...).elevateZoom is not a function

"For example, for elevateZoom download a file jquery.elevatezoom.js and add it as custom JS."

romo
Posts: 0
Joined: Sat May 10, 2014 9:58 am

Image zoomable?

Dear Katya

My Zooming image not work!, i just follow the code above and use jquery.elevatezoom.js.

path not define?
Image

Here my load event js
Image

Here my jquery.elevatezoom.js. as a custom JS
Image

Plz help me...

regards
Romo

romo
Posts: 0
Joined: Sat May 10, 2014 9:58 am

Image zoomable?

Dear Appery.

Any update!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Image zoomable?

Hello Romo,

Change variable path to path to an enlarged image.
ie instead of

codeAppery("mobileimage_mapHSC").attr("data-zoom-image", path);/code

Should be something like this

codeAppery("mobileimage_mapHSC").attr("data-zoom-image", Appery.getImagePath('mybigimage.jpg'));/code

If you loaded enlarged image in app via pictures assets.
Or like this

codeAppery("mobileimage_mapHSC").attr("data-zoom-image", 'http://my.site/some/path/to/image/mybigimage.jpg');/code

If enlarged image is somwhere in internet

Daniel Purtill
Posts: 0
Joined: Mon Jul 21, 2014 9:37 pm

Image zoomable?

victor, could you describe how you got this to work for you?

i'm having a lot of trouble with getting elevatezoom to work.

Return to “Issues”