Jump to content

creating thumbnail


adam291086

Recommended Posts

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

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

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.