Topic: Resize & Crop Images on the Fly?
So, finally I can extract the first thumbnail image from a blog post. The problem is that the image still in their original resolution:
<?php $str = $post['content']; $url = preg_match('<img.*?src="(.*?)".*? ?\/?>', $str, $output); if (!empty($output[1])) { echo "<img alt='' class='post-thumbnail' width='72' height='72' src='" . $output[1] . "'>"; } else { echo "<img alt='' class='post-thumbnail' width='72' height='72' src='no-image.png'>"; } ?>
Is it possible to resize and crop the image on the fly just like Picasa does, and also cache the result?
What is Image method used for?
Image::factory($file); // etc...
XSS Testing <script>alert('HIYAA!!!');</script>