prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Reading images dimession from Rest service

hi,

We are getting an image path via rest service. The size of the image 150 *47px. We are reading the height & width of image using below commands:

var image = Appery('mobileimage_340');
var iwidth = image.width();
var iheight = image.height();
alert (iwidth);
alert (iheight);

However, the alert shows height and width as 550 and 550px respectively. Request you to please let us know the correct ways to read the image dimensions from the rest service response.

Regds
Prashant

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

Reading images dimession from Rest service

Dear Prashant,

Please post a public app link here. Where can we see the code?

Return to “Issues”