ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Change image as per screen height width

Hi,

I have uploaded images in asset, now i want to change images as per screen height and width. How can i get images from asset ?

Thanks,
Ishani

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

Change image as per screen height width

Hi Ishani,

Sorry, not sure I understand your question. [quote:]i want to change images as per screen height and width[/quote]What do you want to do?

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Change image as per screen height width

Hi,
As per the screen height width of the device, want to change image accordingly, which i have already uploaded in asset.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Change image as per screen height width

Hi,
I have uploaded image in resources -- image. I want this image to bind dynamically
Image

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

Change image as per screen height width

Ishani,

It's better to place images in WEB_RESOURCES/files/views/image and use this code:preAppery.getImagePath("assetName");/preWhere assetName is an image asset name.

Return to “Issues”