I\'m resizing images with php gd. The result is image resources that i want to upload to Amazon S3. It works great if i store the images on disk first but i would like to up
You might look at the following answer for help. It works for generic memory changes in php.
Although since overhead could be involved it might be more of an estimation.