PDF as a thumbnail.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply

PDF as a thumbnail.

Post by ridera » 2007-02-07T11:58:01-07:00

I'm trying to get the first page of a pdf to show as a 120x120 thumbnail. However, the image is so washed out, it's useless.

Here is one of several commands I've tried.
/usr/local/bin/convert -size 240x240 /home/xxxx/public_html/test/images/dan1.jpg[0] -label %f -thumbnail 120x120 -frame 6x6 /home/xxxxx/public_html/test/images/tmp_thumb.gif

I tried including -contrast and using the montage tool. Montage doesn't handle -contrast.

Anyone have a suggestion?

User avatar
Posts: 8878
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: PDF as a thumbnail.

Post by anthony » 2007-02-07T21:33:11-07:00

This is a know problem and one with no good solution.
I have a marker for such solutions though

May I suggest you try using -normalize afetr resizing the image down in
stages. If that seems to work, let us know the exact commands you use and I'll add it to the above section. (an example image may also be useful).

Another untested idea may be to use include some blur and multiplys (-evaluate) to the images before the resizes to try to thicken up the lines in the image. Again let us know how it goes and what you find.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages

Post Reply