Search found 3 matches

by cbn4000
Thu Oct 06, 2005 9:38 pm
Forum: Graphics
Topic: resize images
Replies: 4
Views: 6241

Here is the code that works correctly. I had to modify it a little more. function createFeature($dirname,$img,$w,$h) { $dx=$dy=0; $imagedata = getimagesize($img); if($imagedata[0]>$w && $imagedata[1]>$h){ if ($w && ($imagedata[0] < $imagedata[1])) { $dw = ($h / $imagedata[1]) * $imag...
by cbn4000
Thu Oct 06, 2005 3:22 pm
Forum: Graphics
Topic: resize images
Replies: 4
Views: 6241

thanks Pickle!! it worked great! Here is the modified code for anyone trying to do this: <?php function createFeature($dirname,$img,$w,$h,$i) { $dx=$dy=0; $imagedata = getimagesize($img); if($imagedata[0]>$w && $imagedata[1]>$h){ if ($w && ($imagedata[0] < $imagedata[1])) { $dw = ($h...
by cbn4000
Wed Oct 05, 2005 10:09 pm
Forum: Graphics
Topic: resize images
Replies: 4
Views: 6241

resize images

Jcart | Please use and tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] I am accepting images into my script and then resizing them to create both a feature image (400x300px) and a thumbnail (120x90px). ...