471,337 Members | 1,178 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Problem: Resize large JPG's with PHP memory limit

I am using a shared server and the max PHP memory limit is set at 10MB. I
can not change this. I would like to resize uploaded JPG images. I have
tried many different scripts using the GD libs, but they all do not work for
larger JPGs. I know that the limit is the max PHP memory, but is there
anything that I can do to get this to work?

ImageMagick?
Java?

Thanks
Jul 17 '05 #1
2 2528

Shell out to imagemagik, such as 'convert' program and pass it the
parameters to the jpg

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Kenton Smith" <sm*****@shaw.ca> wrote in message
news:Dj30c.642525$ts4.629992@pd7tw3no...
I am using a shared server and the max PHP memory limit is set at 10MB. I
can not change this. I would like to resize uploaded JPG images. I have
tried many different scripts using the GD libs, but they all do not work for larger JPGs. I know that the limit is the max PHP memory, but is there
anything that I can do to get this to work?

ImageMagick?
Java?

Thanks

Jul 17 '05 #2
In article <Dj30c.642525$ts4.629992@pd7tw3no>,
"Kenton Smith" <sm*****@shaw.ca> wrote:
I am using a shared server and the max PHP memory limit is set at 10MB. I
can not change this. I would like to resize uploaded JPG images. I have
tried many different scripts using the GD libs, but they all do not work for
larger JPGs. I know that the limit is the max PHP memory, but is there
anything that I can do to get this to work?

ImageMagick?


Yes. :)

$dir = "/my/img/dir";
system("convert -resize 400 $dir/image.jpg $dir/image_thumb.jpg");

for example.

--
Sandman[.net]
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Alex Hopson | last post: by
4 posts views Thread by VR | last post: by
4 posts views Thread by SlasherStanley | last post: by
14 posts views Thread by Rudy | last post: by
4 posts views Thread by rbt | last post: by
5 posts views Thread by althafexcel | last post: by
11 posts views Thread by callieandmark | last post: by
6 posts views Thread by Bob Bedford | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.