PDA

View Full Version : Unable to Resize Very Large Images - ImageMagick


matt3830
Wed 16th Aug '06, 4:34pm
I have imagemagick running on my vb installation. I want to be able to resize really large images. It's resizing images up to about 2500 pixels wide. But anything bigger than that, and it gives this error message:

"The Dimension limits for this filetype are 800 x 600. We were unable to resize your file so you will need to do so manually and upload it again. Your file is currently 8858 x 2182."

Tree
Wed 16th Aug '06, 5:17pm
That's very large, not quite sure why you'd need to resize images that large. But reinstall ImageMagick and it should be fine.

Freddie Bingham
Wed 16th Aug '06, 5:20pm
Imagemagick isn't able to handle it for some reason. You would need to seek further assistance on the imagemagick forums at www.imagemagick.org. If you send me the image, I can try it and if I can duplicate it, I'll give you the exact error that you would need to relay on to the imagemagick team.

matt3830
Wed 16th Aug '06, 6:06pm
Many of my users are avid photographers. They don't often know how to resize their pictures, and end up getting error messages. I want to make it really easy for them. Can you pm me your email address? So I can send you the image.

Freddie Bingham
Wed 16th Aug '06, 6:28pm
<email address removed>

Freddie Bingham
Wed 16th Aug '06, 7:47pm
Actually, you've exceeded the hard coded limits that I've put into the code.

The issue is that without some limitation, users would be free to try to upload any size file. That could cause problems when GD or ImageMagick try to resize the file. Just imagaine if a user tries to upload a 10000 x 10000 image.

By default images larger than 2592 x 1944 won't be processed. Edit config.php and add the following two lines:

$config['Misc']['maxwidth'] = 3000;
$config['Misc']['maxheight'] = 3000;Change the 3000 to what you need to process.

matt3830
Wed 16th Aug '06, 8:09pm
Thanks you!

Troy Roberts
Sun 27th Aug '06, 3:40pm
Just applied and tested to one of my forums as well. Worked like a charm.

May want to consider making this an admin option in a future release. I just wanted to be able to upload a standard pic from my digital camera. Setting it at 3000/3000 made that possible. :)

Thanks