projects
/
HTML5TV.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd5be6
)
use scaled image instead of original
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 13 Oct 2009 00:09:52 +0000
(
02:09
+0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 13 Oct 2009 00:09:52 +0000
(
02:09
+0200)
bin/mplayer.pl
patch
|
blob
|
history
diff --git
a/bin/mplayer.pl
b/bin/mplayer.pl
index
b050711
..
a92bda0
100755
(executable)
--- a/
bin/mplayer.pl
+++ b/
bin/mplayer.pl
@@
-176,8
+176,7
@@
sub html5tv {
$file =~ s{^.+/(p\d+\.\w)}{$path/$1};
my $im = Imager->new( file => $hires );
- $im->scale( xpixels => $w, ypixels => $h, type => 'min' );
- $im->write( file => $file );
+ $im->scale( xpixels => $w, ypixels => $h, type => 'min' )->write( file => $file );
warn "resized $file ", -s $file, " bytes\n";
}
}