Re: Imagemagick Displaying Images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 02 May 2006 18:24, Ray Hauge wrote:
> 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] -


For further clarification, here is how I got it to actually convert, but still 
display the output to standard out:

$img = shell_exec("convert -resize 800x600 /tmp/file.pdf[0] jpg:-");
header("Content-type: image/jpg");
print($img);

Now you can dream up any sort of ideas with GET variables to define which 
image you want.

Later,
Ray

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux