Dynamic Image

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
ravinder

Dynamic Image

Post by ravinder » Tue Apr 05, 2011 1:10 am

How to upload a image in mysql data base and retrieve from data base

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Dynamic Image

Post by egami » Tue Apr 05, 2011 4:36 am

drink lots of India Pale Ale beer, and hope for the best!

annyphp
New php-forum User
New php-forum User
Posts: 76
Joined: Sun Nov 28, 2010 6:33 pm
Contact:

Re: Dynamic Image

Post by annyphp » Wed Apr 20, 2011 6:15 pm

Hi
You can find some dynamic image scripts on PHPKode.com
Recommend a good scripts named Image dynamic resizer:
Images can be loaded from a specified file or a previously computed one can be used. Image dynamic resizer can resize the image to a given width or height keeping the original aspect ratio.

If the original aspect ratio differs from the desired size aspect ratio, the resulting image can either be cropped or filled with a given background color.
Check out http://www.phpkode.com/scripts/item/ima ... ic-esizer/ for more info...

User avatar
webinfopedia
New php-forum User
New php-forum User
Posts: 84
Joined: Sat May 21, 2011 10:26 pm
Contact:

Re: Dynamic Image

Post by webinfopedia » Wed May 25, 2011 10:49 am

Hello

I think its better to upload an image to the web directory and saving its name in database than the uploading image directly to database. because we have some advantages if you uploaded image to web directory.
In below article i have explained it. You can download the example file also by viewing demo
http://www.webinfopedia.com/php-upload- ... abase.html

Thank You.

User avatar
webinfopedia
New php-forum User
New php-forum User
Posts: 84
Joined: Sat May 21, 2011 10:26 pm
Contact:

Re: Dynamic Image

Post by webinfopedia » Mon Aug 15, 2011 4:17 am

Hi

Kindly check my below article. You can download the example file also by viewing demo.
http://www.webinfopedia.com/php-upload- ... abase.html

Here what you have to change is the file type in if condition. U can get the file type using $_FILES['image']['type'] in PHP.

Will post the example file soon..

Thank You
http://www.webinfopedia.com

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests