html - how to enlarge the size of an image fetched from database using only php -
i want know there inbuilt function in php through can display image greater size stored in database(i.e. greater original size).
i know can done using html/css properties height
, width
want done through php only.
i tried imagecreatefromjpeg($filename);
takes file or directory name in place of $filename
, image in database.
here part of code:
while( $result=mysqli_fetch_array($runquery)) { echo'<img src="data:image/jpeg;base64,'base64_encode($result['image']).'"/>'; }
load image imagecreatefromstring
. resize imagecopyresized
.
also suggest save paths image in database.
Comments
Post a Comment