]> jspc29.x-matter.uni-frankfurt.de Git - labtools.git/commitdiff
added pdf convert
authorJan Michel <j.michel@gsi.de>
Mon, 20 Apr 2015 12:00:14 +0000 (14:00 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 20 Apr 2015 12:00:14 +0000 (14:00 +0200)
presenter/convert.sh [changed mode: 0644->0755]
presenter/getPic.pl [changed mode: 0644->0755]
presenter/getfiles.pl [changed mode: 0644->0755]
presenter/index.pl [changed mode: 0644->0755]
presenter/showPic.pl [changed mode: 0644->0755]
presenter/uploadFiles.pl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6b27965..6d7d770
@@ -9,4 +9,6 @@
 #-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
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 8134d10..4207153
@@ -29,6 +29,14 @@ while ( $nBytes = read($upfile, $buffer, 1024) ) {
 }
 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;
@@ -42,4 +50,4 @@ sub GetBasename {
   }
 
   return(pop(@parts));
-}
\ No newline at end of file
+}