Ask a Question related to PHP Development, Design and Development.
-
Volhouden #1
Image too large? Give a link!
Hello,
I have a forum with a function that if an image is larger as xxx the forum
will give a link to the image. But it doesn't work... :-S
Could anyone see what i have done wrong?
Thanx, Arjan
You can see the forum at: [url]http://members.lycos.nl/wbdf/wbdfforum/index.php[/url]
Function image-part of the full script:
function image_control ($url, $myfont, $mycolor5) {
$image_size = @getimagesize($url);
$image_width = $image_size[0];
if ($image_width > 600) {
$value = $image_width / 600;
$image_height = $image_size[1];
$image_height = round ($image_height / $value);
$image = "<center><a href=$url target=_blank><img src=$url width=600
height=$image_height border=1></img></font><font face=$myfont
color=$mycolor5 size=1><br>Klik om te vergroten</font><font face=$myfont
color=$mycolor5 size=2></a></center>";
}
else {
$image = "<img src=$url border=1></img>";
}
return $image;
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24-7-2003
Volhouden Guest
-
Thumbnail to large image
How do I create a rollover effect where on mouse-over a thumbnail image will display a larger image: on top; to the side? Thanks for your help in... -
ASP thumb to large image
I have an ASP page that presents the results of a query. The page gives from every found record normal data but also an image. This is a thumbnail.... -
large image db delemia
I have a camera system (Axis) which stores JPG via FTP 1-10fps. There is also a motion jpg live stream. I am trying to store these images either... -
Can I take a small (320x240), blurry image, and make it a clear, large image?
Just wondering if there is an easy way to do this? I'm sure it won't be perfect cause photoshop can only work with what's there, but maybe it can... -
Image Too Large problem
Clint, Might I ask what computer you are using ? I am routinely working on large files - 800MB to 1.6Gb, and my Photoshop Scratch file size... -
Kicksy #2
Re: Image too large? Give a link!
Volhouden wrote:
Try changing $image = "<img src=$url border=1></img>";> Hello,
>
> I have a forum with a function that if an image is larger as xxx the forum
> will give a link to the image. But it doesn't work... :-S
>
> Could anyone see what i have done wrong?
>
> Thanx, Arjan
>
> You can see the forum at: [url]http://members.lycos.nl/wbdf/wbdfforum/index.php[/url]
> Function image-part of the full script:
>
> function image_control ($url, $myfont, $mycolor5) {
> $image_size = @getimagesize($url);
> $image_width = $image_size[0];
>
> if ($image_width > 600) {
> $value = $image_width / 600;
>
> $image_height = $image_size[1];
> $image_height = round ($image_height / $value);
>
> $image = "<center><a href=$url target=_blank><img src=$url width=600
> height=$image_height border=1></img></font><font face=$myfont
> color=$mycolor5 size=1><br>Klik om te vergroten</font><font face=$myfont
> color=$mycolor5 size=2></a></center>";
> }
>
> else {
> $image = "<img src=$url border=1></img>";
> }
>
> return $image;
> }
to
$image = "<img src='$url' border=1>";
or
$image = "<img src=\"$url\" border=1>";
--
From the mind of Andrew Kicks
Remove nospam to reply
Kicksy Guest
-
Volhouden #3
Re: Image too large? Give a link!
> Try changing $image = "<img src=$url border=1></img>";
Thanx for repling...> to
> $image = "<img src='$url' border=1>";
> or
> $image = "<img src=\"$url\" border=1>";
But he already show the picture, but the problem is that if the image is
larger as 600 pix he should give a link to the image instead of showing
it....
And now he still showing the pic:
[url]http://members.lycos.nl/wbdf/wbdfforum/index.php?cat=8&topic=1&page=4[/url]
"Kicksy" <slapkicksy@noblueyonderspam.co.uk> schreef in bericht
news:jR2Xa.1201$hz2.13582546@news-text.cableinet.net...forum> Volhouden wrote:
>> > Hello,
> >
> > I have a forum with a function that if an image is larger as xxx the[url]http://members.lycos.nl/wbdf/wbdfforum/index.php[/url]> > will give a link to the image. But it doesn't work... :-S
> >
> > Could anyone see what i have done wrong?
> >
> > Thanx, Arjan
> >
> > You can see the forum at:>> > Function image-part of the full script:
> >
> > function image_control ($url, $myfont, $mycolor5) {
> > $image_size = @getimagesize($url);
> > $image_width = $image_size[0];
> >
> > if ($image_width > 600) {
> > $value = $image_width / 600;
> >
> > $image_height = $image_size[1];
> > $image_height = round ($image_height / $value);
> >
> > $image = "<center><a href=$url target=_blank><img src=$url width=600
> > height=$image_height border=1></img></font><font face=$myfont
> > color=$mycolor5 size=1><br>Klik om te vergroten</font><font face=$myfont
> > color=$mycolor5 size=2></a></center>";
> > }
> >
> > else {
> > $image = "<img src=$url border=1></img>";
> > }
> >
> > return $image;
> > }>
> --
> From the mind of Andrew Kicks
> Remove nospam to reply
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24-7-2003
Volhouden Guest
-
Kicksy #4
Re: Image too large? Give a link!
Volhouden wrote:
ok, sorry>>>Try changing $image = "<img src=$url border=1></img>";
>>to
>>$image = "<img src='$url' border=1>";
>>or
>>$image = "<img src=\"$url\" border=1>";
>
> Thanx for repling...
>
> But he already show the picture, but the problem is that if the image is
> larger as 600 pix he should give a link to the image instead of showing
> it....
>
> And now he still showing the pic:
> [url]http://members.lycos.nl/wbdf/wbdfforum/index.php?cat=8&topic=1&page=4[/url]
<snip rest of code>
$image = "<center><a href=\"$url\" target=_blank>Words for link go
here</a></font><font face=$myfont
color=$mycolor5 size=1><br>Klik om te vergroten</font><font face=$myfont
color=$mycolor5 size=2></a></center>";
}
else {
$image = "<img src=\"$url\" border=1></img>";
}
return $image;
}
is that what your looking for?
--
From the mind of Andrew Kicks
Remove nospam to reply
Kicksy Guest
-
Volhouden #5
Re: Image too large? Give a link!
> is that what your looking for?
It doesn't work :-S
"Kicksy" <slapkicksy@noblueyonderspam.co.uk> schreef in bericht
news:kd3Xa.1217$Ax2.13563087@news-text.cableinet.net...> Volhouden wrote:
>>> >> >>Try changing $image = "<img src=$url border=1></img>";
> >>to
> >>$image = "<img src='$url' border=1>";
> >>or
> >>$image = "<img src=\"$url\" border=1>";
> >
> > Thanx for repling...
> >
> > But he already show the picture, but the problem is that if the image is
> > larger as 600 pix he should give a link to the image instead of showing
> > it....
> >
> > And now he still showing the pic:
> > [url]http://members.lycos.nl/wbdf/wbdfforum/index.php?cat=8&topic=1&page=4[/url]
> ok, sorry
>
> <snip rest of code>
>
> $image = "<center><a href=\"$url\" target=_blank>Words for link go
> here</a></font><font face=$myfont
> color=$mycolor5 size=1><br>Klik om te vergroten</font><font face=$myfont
> color=$mycolor5 size=2></a></center>";
> }
>
> else {
> $image = "<img src=\"$url\" border=1></img>";
> }
>
> return $image;
> }
>
>
>
> --
> From the mind of Andrew Kicks
> Remove nospam to reply
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24-7-2003
Volhouden Guest



Reply With Quote

