faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL : Questions in search of an Answer

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 7 people (71%) answered Yes
Recently 5 of 7 people (71%) answered Yes

Entry

How do I resize an image that is stored in mySQL?

Feb 6th, 2002 08:36
Ivo, bal just-bal, Onno Benschop,


To actually resize the image i.e. write a new image to disk see:
http://www.php.net/manual/en/function.imagecopyresized.php
otherwise to keep the image as is but resize in the browser, edit 
the height=x and width=y in your html tag. To get the existing image 
info see:
http://www.php.net/manual/en/function.getimagesize.php
and use that to calculate new tags.