Script file generated from LiVES |1.7 ZoomOnASpot 1 William| Zoom In On A Spot|Zooming in on a Spot|1|1| convert ezoom|_End Zoom eg 6% becomes 100%|num0|12|1|100| cx|Centre on _X|num0|0|0|10000| cy|Centre on _Y|num0|0|0|10000| 0x0001 0xF0
$zoom=-1;
$antialias="false";
$resize_ext=$out_ext;

$xremoveeachtime=(($width/100.0)*(100.0-$p0))/($end-$start+1.);
$yremoveeachtime=(($height/100.0)*(100.0-$p0))/($end-$start+1.);

$c_x=$p1;
$c_y=$p2;
$zoom++; $newwidth=int($width-($xremoveeachtime*$zoom)); $newheight=int($height-($yremoveeachtime*$zoom)); $s_x=int($c_x-($newwidth/2)); if ($s_x<0) { $s_x=0; } if ($s_x+$newwidth>$width) { $s_x=int($width-$newwidth); } $s_y=int($c_y-($newheight/2)); if ($s_y<0) { $s_y=0; } if ($s_y+$newheight>$height) { $s_y=int($height-$newheight); } $input_ext=$img_ext; &trim_frame($name,$width,$height,$s_x,$s_y,$newwidth,$newheight); $input_ext=$resize_ext; &resize_frame($name,$width,$height); init|$p1_max=$width;$p1=$width/2;$p2_max=$height;$p2=$height/2;