Re: Imagemagick Displaying Images
| From: | Ray Hauge | Date: | Wed, 03 May 2006 01:24:35 +0000 |
| Subject: | Re: Imagemagick Displaying Images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235317@lists.php.net to get a copy of this message | ||
On Tuesday 02 May 2006 18:19, Ray Hauge wrote:
> I have an application that shows thumnails of PDF files in different
> directories. I have so far decided that I can use "convert" from
> imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The
> problem I'm running into is that I don't want to save these thumbnails.
> Instead I just want to take the binary data and display an image with it.
> I figure that it's possible since you can store binary data in a database
> and display it that way.
>
> an example of what I'm doing is:
>
> convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] -
>
> The '-' makes it display the contents of the image to stdout. I want to
> caputre that binary data and somehow display the images inline with the
> website. Is this possible, or am I living in a dream world ;)
>
Okay, I'll admit it. I didn't STFW. I believe that if I make a seperate
script to just display the images, and then display them all with <img
src='show_image.php?id=blah'>. Of course this is just theory until I try it,
but I'm pretty sure this is on the right path.
Thanks for listening anyway, and maybe this will help someone else ;)
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099