Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

image width and height

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

image width and height

Postby ffdd » Tue Mar 12, 2013 8:00 am

I'm not very expert about php, but I'm trying to change something into a web site.
What I want is to add zoom properties to the image.

I find mojozoom and it should be ok.

To use mojozoom I have to specify the width and height of the image.

So, I have this tag

<div id="my_zoom1" class="zoompic" data-src="<?=SITE_PATH;?>thumbnail.php?pic=<?=$item_details['ad_image'][0];?>&w=500&sq=N&b=N" data-animate="true" data-width="400" data-height="250" data-autopan="true" data-zoomicon="gray"></div>

where
"<?=SITE_PATH;?>thumbnail.php?pic=<?=$item_details['ad_image'][0];?>&w=500&sq=N&b=N"
is the image.

how can I get the width and height of the image to assign that values to data-width and data-height attributes?

Thank
F.
ffdd
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Mar 12, 2013 7:39 am

Re: image width and height

Postby seandisanti » Tue Mar 12, 2013 8:10 am

check out zoomooz; it's a free jquery plugin that is very easy to use and configure. there are some examples on their homepage http://janne.aukia.com/zoomooz/
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron