I am using a php function to resize the images. Here is the link to the function I am using.
http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/
It works alright for the low resolution images, but I face problem while uploading high resolution image. When I try uploading a JPEG/image with a resolution or 4320 × 3240 it does not resize....instead it just skips resizing and moves the file to the destination.
I would like to know if the function is capable of resizing the image with higher resolution. If yes then what is possibly wrong?
This is the code I am using to resize:
include('smart_resize_image.function.php');
ini_set ( "memory_limit", "100M");
smart_resize_image($targetFile,
$width = 930,
$height = 640,
$proportional = false,
$output = 'file',
$delete_original = true,
$use_linux_commands = false );
I have also put on following code in htaccess:
php_value upload_max_filesize 100M
php_value post_max_size 100M
I don't mind increasing the memory_limit because only a single admin will be uploading a file at a time.