Is there a size limit for GD library?
This code works fine with 800px x 600px images but fails to convert 3168px x 4752px.
The images are being converted to 150px x 150px.
In this instance, the proprtions do not matter as they are only a visual confirmation transferred files.
Keith
This code works fine with 800px x 600px images but fails to convert 3168px x 4752px.
The images are being converted to 150px x 150px.
Code:
<?php
$img_name=$_GET['imnam'];
$new_width=$_GET['maxwid'];
$new_height=$_GET['maxhi'];
$img_name="../httpdocs/uppydoc/"."$img_name";
$size=GetImageSize($img_name);
$bwimage = ImageCreateFromJPEG($img_name);
$thumb = ImageCreateTrueColor($new_width,$new_height);
ImageCopyResampled($thumb, $bwimage, 0,0,0,0,$new_width,$new_height,$size[0],$size[1]);
ImageJPEG($thumb);
ImageDestroy($thumb);
ImageDestroy($bwimage);
?>
In this instance, the proprtions do not matter as they are only a visual confirmation transferred files.
Keith