Re: working with PDFs and STDOUT.

DruiD <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
Hey Fred,
Yeah, the png delegate lib is installed.
Basically I've got an app where people can go online and upload images
and pdfs related to a particular object then when they look at the
object below has a list of images and pdfs related to that object with a
thumbnail. They want to be able to view the first page of the pdf as a
thumbnail in the list. I have everything written already to do all the
images [using GD to handle the others] *but* the pdf's on the fly so I
don't have to store thumbnails.

I know GD can't do what I want but, I guess, what I'm wondering is if
the solution I'm looking for isn't a mixture of using imagemagick and
gd. Where imagemagick converts the first page to an image preferably png
and then returns the raw data of that png to gd to let gd take care of
it from there.

Am I making sense?
I've been at this a while and it's been a long week.

Thanks!
-mb


Fred Weinhaus wrote:
> I think it depends upon what you want to do with stdout. This works 
> to display the first page
>
> convert rose: rose: rose: rose.pdf
>
> convert rose.pdf[0] png:- | display -
>
>
> perhaps you don't have the png delegate library installed. To check type
>
> convert -list configure
>
> look at the line starting with DELEGATES. Does it include png?
>
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.