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 Link to comment https://forums.phpfreaks.com/topic/57339-saving-temp-of-dynamic-thumb-on-server/ 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. Link to comment https://forums.phpfreaks.com/topic/57339-saving-temp-of-dynamic-thumb-on-server/#findComment-283516 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? Link to comment https://forums.phpfreaks.com/topic/57339-saving-temp-of-dynamic-thumb-on-server/#findComment-283523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.