Any idea what I would need to add to this to get an image to resize to width=990px height=1457px?
[code=php] // get current image file
$current=$pics[$pic-1];
$next=$pic+1;
if ($next > sizeof($pics)){ $next=sizeof($pics); }
$back=$pic-1;
if ($back < 1){ $back=1; }
// display image above nav
if ($navplacement!=”above”){
if (substr($current,-4) == “.jpg” || substr($current,-4) == “.gif” || substr($current,-4) == “.png” || substr($current,-4) == “.JPG” || substr($current,-4) == “.GIF” || substr($current,-4) == “.PNG”){
if ($pic < sizeof($pics)){
echo”n<p id=”cg_img”><a href=”?p=”.$next.””><img src=””.$imagedir.”/”.$current.”” alt=”Next” /></a></p>n”;
} else {
echo”n<p id=”cg_img”><img src=””.$imagedir.”/”.$current.”” alt=”End” /></p>n”;
}
}
}
Anyway to get it to run through this (resizepic)
[code=php]<?php
$photo = $_GET[‘p’];
$height = $_GET[‘h’];
$width = $_GET[‘w’];
$cmd = “/usr/local/bin/convert -size {$width}x{$height} $photo -matte -thumbnail {$width}x{$height} JPG:-“;
header(“Content-type: image/jpeg”);
passthru($cmd, $retval);
?>
Usually I just do:
[code=html]
http://www.xxx/resizepic.php?p=images/aoa4-7.jpg&w=960&h=1457