#-quality 84 \
#PNG:'%[filename:1].png'
-convert -density 300x300 -resize 1440x900 -quality 80 $1 `echo $1|cut -f1 -d'.'`.png;\
+#convert -density 300x300 -resize 1440x900 -quality 80 $1 `echo $1|cut -f1 -d'.'`.png;\
+
+pdftoppm -png -r 300 -scale-to 1400 $1 $2
}
close(OUTFILE);
+if($basename =~ /.pdf$/) {
+ my $b = $basename;
+ $b =~ s/.pdf//;
+ system("cd store;../convert.sh $basename $b");
+ system("rm store/$basename");
+ }
+
+
sub GetBasename {
my $fullname = shift;
}
return(pop(@parts));
-}
\ No newline at end of file
+}