php - Using ImageCopyResampled possibly causing memory shortages on files > 1MB -
i have app allow users upload photos to. first save image server , use imagecopyresampled() , it's friends resize image, replace old larger image new version.
it works ok on smaller images (size wise, dimensions don't seem matter) on larger images function appears breaking @ point call imagecopyresampled function.
on localhost largest sized image file script process ok 2mb. on live server it's 1mb.
after checking , reading on here found out php.ini's settings memory limits, on localhost:
memory_limit = 128m post_max_size = 128m upload_max_filesize = 128m
and yet still won't let me sample image bigger 2mb
on live server (which works 1mb) i've asked host who've said package has 30 mb of memory limit. surely 1mb file manipulated imagecopyresampled() wouldn't take 30mb of memory.
can tell me if in fact imagecopyresampled() , lack of memory that's causing problem? if so, there can it? if not, there obvious might problem?
Comments
Post a Comment