I'm using a simple image manager class, and the following code:
<?php
include('SimpleImage.php');
$image = new SimpleImage();
$image->load($target_path);
if($image->getWidth() > 500) {
$image->resizeToWidth(500);
echo "<p>Image Resized</p>";
} else echo "<p>Image did not need to be resized.</p>";
$image->save($target_path);
echo "<p>Image Saved</p>";
?>
The image is successfully resized when I upload an image with a width of 700, but when I upload a really big picture (width ~= 2300), it doesn't work, and I don't see any of my echo
messages.
Do certain php image functions have a size limit that might be causing this?