Re: Image Question
| From: | Jay Paulson | Date: | Mon, 08 Apr 2002 22:54:46 +0000 |
| Subject: | Re: Image Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92142@lists.php.net to get a copy of this message | ||
I'm putting it in the database because it's easier to handle that way, my
site doesn't get too much traffic so it's not that big a load, and the files
are usually between 2-8k which is tiny and the server should be able to
handle that. Anyway, I have to resize the image because some of my writers
don't know the first thing about image editing and can't resize the image
themselves.
----- Original Message -----
From: "Rick Emery" <remery@excel.com>
To: "'Jay Paulson'" <jpaulson@lbjs.com>; <php-general@lists.php.net>
Sent: Monday, April 08, 2002 5:19 PM
Subject: RE: [PHP] Image Question
> First, why store it in a database? Why not store it as a separate file,
> then store pointer/file-name to it in database?
>
> If you do want it in the database (may I assume mysql?), then INSERT/LOAD
> the file directly into the field without conversion.
>
> -----Original Message-----
> From: Jay Paulson [mailto:jpaulson@lbjs.com]
> Sent: Monday, April 08, 2002 5:20 PM
> To: php-general@lists.php.net
> Subject: [PHP] Image Question
>
>
> Hello everyone.
>
> I'm uploading an image, resizing it, then base64_encoding it to put the
> image into a data base.. then when I view it out of the data base using
the
> base64_decode function it looks horrible.
>
> Below is the original image off of IMDB.com
>
http://us.imdb.com/ImageView?u=http%3A//images.amazon.com/images/P/B00005K3O
> 4.01.LZZZZZZZ.jpg
>
> And here is the image I get after the resize etc.
> http://www.dvdfuture.com/image.php?id=95
>
> I'm using imagejpeg with the quality set to 90 so I really don't know why
> it's looking so badly.
>
> Thanks,
> Jay
>
> ps phpinfo is at the following URL
> http://www.dvdfuture.com/tests/testphp.phtml
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php