Model Railway Forum banner
1 - 3 of 3 Posts

· Premium Member
234 Posts
Discussion Starter · #1 ·
I tied to upload a photo and got the following error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes) in /home/modelrai/public_html/forums/sources/components_public/gallery/lib/lib_image.php on line 426.

I assume this means my photo was too big - how can I rectify this and then be able to post photos?

· Administrator
10,720 Posts
There are actually two restrictions on the size of photos which can be uploaded to the member's gallery
  • An absolute file size of 2M bytes. It is unusual to breach this with most standard quality image settings
  • A image pixel limit which appears to be of the order of about 3M Pixels. I'm not quite sure where it is.
Similar limits also apply to attachments.

My solution to this problem is to resize the images in Paint and use save as JPEG to store the reduced size.

Hope this helps


In case anyone tries the "Paint" approach and can't find the resize or save as JPEG option then maybe one or both options came with the Vista version.

· DT
5,345 Posts
Your photos in the gallery don't need to be too big. You are going to display them online anyway in most cases so they don't have to be right out of the camera.

In this day and age of digital photography a really good desktop management system for your photos is vital.

I recommend something like Google Picasa. With Picasa ( you can manage, sort, search, touch-up and modify your photos. Believe me, after 10 years of digital photos, you'll need something like this.

What I do when I want to upload a photo online, I'll export the photos to a temporary directory, resizing them to a suitable size in the process. Anything from 700 to 1024 pixels wide depending on what I'm going to do with the photo online. The original photo from the camera, I leave in place as a backup in its original size.

Then from the export folder, I can quickly and efficiently upload the photos online or to one of my blogs.
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.