/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<div id="cycle"> <? $files[] = $f1; } } foreach($files as $file): $new_path = realpath($path . "/../../../uploaded/thumbnails"); $new_file = "800x336" . $file; $image = Phpr_Image::makeThumbnail($path . '/' . $file, $new_path .'/' . $new_file, 800, 336);?> <img src="<?= root_url('/uploaded/thumbnails/' . $new_file) ?>"width="800" height="336" /> <? endforeach ?> </div>