ok from those who remember, i was asking about Perl and PHP integration a few days ago becuase my host had not installed PHP GD, well he fixed it 😃
so now i'm writing some thumbnailing scripts and they are working 🙂
now my problem is
<?php
$filename = "8ball.jpg";
$imageInfo = getimagesize($filename);
$imagew = $imageInfo[0];
$imageh = $imageInfo[1];
$new_w= "300";
$new_h= "37";
$img_src ="8ball.jpg";
$dst_img = "/test/8ball.jpg";
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromJpeg("./8ball.jpg");
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),ImageSY($src_img));
ImageJpeg($dst_img, '', 100);
?>
<html>
<body>
<br><a href="8ball.jpg">Fullsize</a>
</body>
</html>
unless i throw an error in the above script, my html doesn't show up? so the link doesn't show up on the page, as you can see here
http://www.tunercarz.com/images/athumb.php
and i would like to use this instead, and i'm having no luck
$imagew = $imageInfo[0];
$imageh = $imageInfo[1];
$new_w= "$imagew/2";
$new_h= "$imageh/2";
now i'm sure that my mistake above is somethign dumb, but the original image size is 600x74 so the values should be as i put above 300x37.
anyone know what's going on with the html?
and how do i divide in php? (i made a seperate script and printed out my $new_w and $new_h and they came up
600/2
and
74/2)
Thanks alot 🙂