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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -