Re: Image Question
| From: | Jay Paulson | Date: | Mon, 08 Apr 2002 22:56:50 +0000 |
| Subject: | Re: Image Question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92143@lists.php.net to get a copy of this message | ||
Well my host had GD "2.0 or higher" installed. Wonder if there is something
I need to ask my host about the package they have installed?
----- Original Message -----
From: "Kevin Stone" <kevin@helpelf.com>
To: <php-general@lists.php.net>
Sent: Monday, April 08, 2002 5:36 PM
Subject: Re: [PHP] Image Question
> Could it be you're unwittingly converting the graphic into 8bit color?
> That's certainly what it looks like. I've read that older versions of PHP
> and GD library don't always translate color depth. I don't have much
> experience programming graphics in PHP but I thought I'd offer up this
> possiblity. Hope it helps. -Kevin
>
> ----- Original Message -----
> From: "Rick Emery" <remery@excel.com>
> To: "'Jay Paulson'" <jpaulson@lbjs.com>;
> <php-general@lists.php.net>
> Sent: Monday, April 08, 2002 4: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
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php