always produce jpeg
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 15 Oct 2009 18:56:47 +0000 (20:56 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 15 Oct 2009 18:56:47 +0000 (20:56 +0200)
bin/mplayer.pl

index 1ad67ec..08ec71f 100755 (executable)
@@ -205,13 +205,11 @@ sub html5tv {
 
                }
 
-               my $path = "$media_dir/s/$factor";
-
                foreach my $hires ( @slides_hires ) {
 
                        my $file = $hires;
-                       $file =~ s{(\d+\.\w)$}{$path/$1} || warn "can't rewrite $file";
-                       warn "slide $hires $file\n";
+                       $file =~ s{(\d+)\.\w+$}{$path/$1.jpg} || warn "can't rewrite $file";
+                       warn "slide $hires -> $file\n";
                        next if -e $file;
 
                        my $im = Imager->new( file => $hires );