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" <[EMAIL PROTECTED]>
To: "'Jay Paulson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Monday, April 08, 2002 5:20 PM
> To: [EMAIL PROTECTED]
> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to