markkanning Posted June 26, 2007 Share Posted June 26, 2007 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 Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted June 26, 2007 Share Posted June 26, 2007 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. Quote Link to comment Share on other sites More sharing options...
markkanning Posted June 26, 2007 Author Share Posted June 26, 2007 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.