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
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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.