You are here: Re: dynamic image and area creation « PHP Programming Language « IT news, forums, messages
Re: dynamic image and area creation

Posted by Krustov on 10/01/07 20:05

<comp.lang.php>
<dino d.>
<Mon, 01 Oct 2007 12:46:51 -0700>
<1191268011.158056.14290@k79g2000hse.googlegroups.com>

> > - grab the images and calculate the total width and/or height
> > - paste the images onto a newly created blank image
> > - create 'image map' co-ordinates and associate urls with the areas
> >
>
> Thanks for the post. The problem is not how to do it, the problem is
> how to do it efficiently? Calculating the individual image
> coordinates takes n steps, and then you have to re-calculate the exact
> same coordinates for the map because there is no way to get them out
> of the image, short of saving them to some temp file. I am looking for
> a workaround that lets me do the calculations once, render the image,
> and somehow pass the calculations back to the calling script.
>

$batman=getimagesize($image1);
$boywonder=getimagesize($image2);
$catwoman=getimagesize($image3);

You dont have to generate them again on the same page/script .

<img src=blah width=$batman[0] height=$batman[1] border=0>
<img src=blah width=$boywonder[0] height=$boywonder[1] border=0>
<img src=blah width=$catwoman[0] height=$catwoman[1] border=0>

IMS there is a suitable circle/oval image map <tab> you can use grabbed
image sizes to calculate these .

It sounds like you only needed examples of getimagesize() .


--
www.vhit.co.uk

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация