Jump to content

Saving temp of dynamic thumb on server


markkanning

Recommended Posts

Hey ya'll,

I've got a thumbnail script that I'm using to thumbnail most of the images on a website, and it works fine. However, I'm concerned about bogging down the server as I'm expecting a lot of traffic. Does anyone know of a way to have the server save a temp copy of the thumbnail for future use, like a browser caches images?

 

oskom

Link to comment
https://forums.phpfreaks.com/topic/57339-saving-temp-of-dynamic-thumb-on-server/
Share on other sites

once you have created the thumnail save it in a directory.

 

I have an 'images' folder for uploaded images that contains a folder called 'thumbs' I save humbnails in there. If I grab an image to be displayed I can check to see if the thumbnal exists - if so show that in stead else create it, save it in thumbs and then show it.

Actually, what I'm trying to do is avoid creating a thumb image and saving it in a directory. I've got a lot of different content areas with different thumbnail sizes and I'd like to maximize my flexibility with any given image. In other words, If I could thumbnail the same image 3 different ways(which is what I'm doing in some cases) that would be optimum. Saving a "concrete" thumbnail image fixes me to that size.

 

Which leads me back to my question: can the server cash "pre-thumbed" images for later use?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.