Forum | Image Thumbnail Issues

You must be logged in to post Login

Image Thumbnail Issues

UserPost

3:39 pm
January 14, 2010


Joseph Cefoli

Fairfield, CT

Member

posts 3

Recently, I noticed a problem with thumbs.php, which is an open source image thumbnail project which is utilized by the Gazette Edition (and probably other themes). This script takes an image and generates an thumbnail of it on the fly. If anyone is having a problem with thumbnails not being generated, read on and I'll explain why this is happenning.


In general, the script that creates the thumbnails works really well, except when the filesizes of the photos are too large. When the image file sizes are too big, the script hangs on the server, and reaches the script memory limit (to prevent scripts from locking the server up), which stops it from completing the resize. Looking through my error_log files, I can see that a lot of thumbnails fail to generate, hence the following error:


[13-Jan-2010 12:55:28] PHP Fatal error:  Allowed memory size of 31457280 bytes exhausted (tried to allocate 12288 bytes) in /home/*****/public_html/wp-content/themes/gazette/thumb.php on line 270

I recommend images to be less than 1MB, and the thumbnails should generate without any issues.


Does anyone know of any plugin for WordPress to limit the file size of image uploads so people will stop uploading giant images and breaking this script?


8:44 pm
January 19, 2010


Daniel Bachhuber

Admin

posts 102

Hey Joe,

That is a known issue with the image resizing script that comes with various WooThemes. We'll do some research on how to restrict the image upload size and get back to you shortly. Thanks!


About the CoPress forum

Most Users Ever Online:

149


Currently Online:

3 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 107

Posts: 538

Membership:

There are 151 Members

There have been 2 Guests

There are 5 Admins

There is 1 Moderator

Top Posters:

Chris Ullyott – 66

Mo Jangda – 35

arobinsonwku – 32

laurenmichell – 21

CMLife – 16

sbressler – 15

Administrators: Daniel Bachhuber (102 Posts), William P. Davis (65 Posts), joey (39 Posts), Greg Linch (14 Posts), adam (1 Post)

Moderators: Andrew Spittle (49 Posts)