Hi,
I've got a site running CS2007, when browing thumbnails in a gallery the thumbnail isn't displayed for some images.
After a bit of digging around and adding some error logging in it appears that the problem is caused by this line in CommunityServer.Galleries.Components.ImageHandling:
Bitmap image = (Bitmap)Bitmap.FromStream(pictureData.Content, true);
Which is throwing an Out Of Memory exception. The images its trying to resize are reasonably large (upwards of 1.5mb).
Any ideas of a fix/workaround to stop this happening.
Thanks,
Rhys
What type of webhosting are you usign - VPS, Dedicated server or shared hosting?
The error you're seeing suggests that the server on which CS is running does not have enough available fre ememory to resize the image. You may wish to look at either upgrading your server to have more ram, or to upload smaller images.
CS Documentation - now available in downloadable PDF form
My CS Site
The site is running on two dedicated servers (One DB Machine, One Web Machine) - the web machine has 3.25GB of ram and 3.25GHz CPU - the site does have a very large amount of users/traffic though - but generally runs between 25% and 40% CPU usage with around a 1GB Page File Usage. So don't think resizing a couple of megs worth of image would cause that big a problem.
You said your site effectively has 4.25gb memory to play with (3.25Gb + 1Gb page file). What percentage of the memory is typically in use. If it's typically at 95%, then CS running out of memory when resizing an image would not be a suprising result.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com