Search…

X3 Photo Gallery Support Forums

Search…
 
rune carlsen
Topic Author
Posts: 4
Joined: 21 Jan 2007, 08:04

BUG: Thumbnails can't be created for certain files

21 Aug 2007, 18:00

I have been running Imagevuex for a long time now, and I am very satisfied. Though, as you get a nicer camera, with better resolution and pixels, I have noticed, that there must be a problem/bug with the thumbnail creation.

I have a file, which can't have a thumb generated. I have a file with a huge resolution (2816x2112) and the thumb won't be generated. If I resize this file, below 2200x somewhere, then the file will be accepted and a thumb will be generated. As least at around 2100 and below. I haven't found the exact limit for the problem. Same file generates on all resolutions below this limit.

So, is this a limit or "working as designed" based on a limit I haven't found in any documentation?

best regards,
Rune Carlsen
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

22 Aug 2007, 03:46

This is a good question, and fortunately it has a simple answer. Unfortunately, the answer may not be to the best of your liking.

Most web servers(commercial servers) host a multitude of sites. Therefore, they also allocate a maximum amount of server memory(ram) to be used by a specific website at any given time. When the Imagevue PHP scripts resizes an image to thumbnail, it uses an amount of memory which is proportional to the size of the image. With large images like you mention, the memory required to resize the image is often exceeded, and therefore the script fails to resize the image.

We have the exact same issue on our commercial server www.photo.gallery, while on our private server imagevuex.inn.no(which is currently down) we have unrestricted memory allocation.

The exact limit for what dimensions you can use depends on your server and also the image details. You may find the limit is around 1280x1024, or up to 2000x2000.

Unfortunately, there is no way around this from Imagevue's perspective. The server will simply not allow resizing an image if it is too large. You do have several workaround options:

#1 Use a smaller size image =)

#2 Create your thumbnails locally for large images by making a thumbnail copy and giving it "tn_" in front of the original name. upload.

#3 The best option is perhaps to upload non-large images first, and the run the Imagevue gallery so thumbnails are created. After thumbnails are created, you can overwrite your original images with large size images, as the thumbnails are already created.

Good luck!
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

22 Aug 2007, 09:54

I think you can email your hosting provider and ask them to increase php memory limit to like 16megs or something. It wont put any load on server only when thumbnails are generated first time.
firedev.com