I want to know is there any inbuilt function in php through which I can display an image greater than the size stored in database(i.e. greater than the original size).
I know it can be done using the HTML/CSS properties height
and width
but I want it done through php only.
I tried imagecreatefromjpeg($filename);
but it takes file or directory name in place of $filename
and my image is in a database.
Here is a part of my code:
while( $result=mysqli_fetch_array($runquery))
{
echo'<img src="data:image/jpeg;base64,'base64_encode($result['image']).'"/>';
}