Search found 4 matches

by ankush
2016-05-13T10:30:07-07:00
Forum: Developers
Topic: Thumbnail creation takes time
Replies: 6
Views: 8729

Re: Thumbnail creation takes time

Alright I added -dFirstPage=1 -dLastPage=1 in delegate.xml, Its still taking a lot of time when I run the same command. Irrespective of whether I give file.pdf[0] or file.pdf

Obviously, IM is evaluating the whole file again. But it should just convert 1st page. What do you think seems to be issue?
by ankush
2016-05-13T03:03:57-07:00
Forum: Developers
Topic: Thumbnail creation takes time
Replies: 6
Views: 8729

Re: Thumbnail creation takes time

Ok, so i found there a solution
If I use the following -

gs -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -o test2.jpg file.pdf

I get the result in seconds.
So I can do with on 2 things here -
a) I can change the command line params to gs
b) Find out imagemagic-convert params equivalent to ...
by ankush
2016-05-13T01:56:55-07:00
Forum: Developers
Topic: Thumbnail creation takes time
Replies: 6
Views: 8729

Re: Thumbnail creation takes time

OS - Ubuntu 14.04
IM Version - 6.7.7 and 7.0.1
the file size is over 9MB (Mega Bytes) .

I'll look into Ghostscript.
Any other solutions would be helpful.
by ankush
2016-05-12T01:38:08-07:00
Forum: Developers
Topic: Thumbnail creation takes time
Replies: 6
Views: 8729

Thumbnail creation takes time

Hello all,

I am using imagemagick to convert a 1st page of pdf to a thumbnail.

I am using command -

convert file.pdf[0] -background white -flatten -resize 173 -crop 173X229+0+0 -gravity NorthWest +repage test.jpg

However when the pdf is large i,e around 9mbs the time taken on my machine is ...