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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -