adam291086 Posted April 6, 2008 Share Posted April 6, 2008 Is it possible to create a temporary thumbnail of a image? without storing it in a folder? If so where do i need to start? Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/ Share on other sites More sharing options...
marklarah Posted April 6, 2008 Share Posted April 6, 2008 if its stored on a different site, just link directly to that adjusting the size accordingly. Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510602 Share on other sites More sharing options...
adam291086 Posted April 6, 2008 Author Share Posted April 6, 2008 yeah that is great but the images i am using are massive, and taking ages to load. I am creating an online gallery. There is no upload to this. I just want to search a folder, then create a thumbnail of these images. These images are used within an iframe. Then i have some javascript making magic happen. Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510604 Share on other sites More sharing options...
marklarah Posted April 6, 2008 Share Posted April 6, 2008 Okay, so if the images aren't on your server, just link to them. <img src="http://www.whatever.com/img.gif" width="50" height="50"> And now the image displayed is small. Is that what you want, you havent made it quite clear ??? Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510615 Share on other sites More sharing options...
adam291086 Posted April 6, 2008 Author Share Posted April 6, 2008 no that not what i want.. sorry i'll explain again. I have a load of images in a folder. I am using <?php $folder = glob("images/*.jpg"); foreach($folder AS $file) { //large image $large = $file; //thumbnail ?> <td> <img src= "<?php echo $file ?>" id="1" width="90" height="90" onclick="parent.replace_img('<?php echo $large ?>')"> </td> <td> <?php } ?> to display them all. The problem using your method is that it is taking ages to load the small images because the full image is still having to load. I need away to make all the large images smaller without saving them, ie a thumbnail with minimal fil size. Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510625 Share on other sites More sharing options...
adam291086 Posted April 6, 2008 Author Share Posted April 6, 2008 anyone.... Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510703 Share on other sites More sharing options...
adam291086 Posted April 6, 2008 Author Share Posted April 6, 2008 bump Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-510732 Share on other sites More sharing options...
adam291086 Posted April 7, 2008 Author Share Posted April 7, 2008 bump Link to comment https://forums.phpfreaks.com/topic/99837-creating-thumbnail/#findComment-511522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.