X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=createpdf.pl;h=e74ab0e0119a08a9e3297e5b4891d634d7d9aca1;hb=faa6ebb4ec6616c3bb9ffc682aec5997056b5364;hp=1af0b87771aa36957a63f00c2b4563696fcc7b7f;hpb=5b43fd49a701b23138641508bbe47c97fbb2d173;p=webpdf diff --git a/createpdf.pl b/createpdf.pl index 1af0b87..e74ab0e 100755 --- a/createpdf.pl +++ b/createpdf.pl @@ -159,7 +159,7 @@ if (defined($size) && $size > 0) { # Make a thumbnail from the finished PDF, for later reference. (Output to # stdout is so we make sure we get only the first page; it's the simplest # hack I can find offhand. :-) ) - system("convert -resize 192x192 output/$pdf_filename png:- > output/$pdf_filename.png"); + system("convert -resize 192x192 output/$pdf_filename png:- | convert png:- png:- > output/$pdf_filename.png"); open DESC, ">output/$pdf_filename.desc"; if ($url =~ /^http/i) {