Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (21 sloc) 1.007 kb
bbc6c5e @rdp really add preamble this time
authored
1 =begin
f3a5c7f @rdp add copyright everywhere [yeck]
authored
2 Copyright 2010, Roger Pack
3 This file is part of Sensible Cinema.
4
ef86a33 @rdp more preamble stuff
authored
5 Sensible Cinema is free software: you can redistribute it and/or modify
f3a5c7f @rdp add copyright everywhere [yeck]
authored
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
ef86a33 @rdp more preamble stuff
authored
10 Sensible Cinema is distributed in the hope that it will be useful,
f3a5c7f @rdp add copyright everywhere [yeck]
authored
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
ef86a33 @rdp more preamble stuff
authored
16 along with Sensible Cinema. If not, see <http://www.gnu.org/licenses/>.
bbc6c5e @rdp really add preamble this time
authored
17 =end
18 require 'rubygems'
971f0a1 @rdp move
authored
19 require 'sane'
20 require 'RMagick'
21
c9ba13a @rdp refactor tests
authored
22 to = ARGV[1] || 'pnm'
d353b5c @rdp minor test cleanups et al
authored
23 img = Magick::Image.read(File.binread ARGV[0])
c9ba13a @rdp refactor tests
authored
24 png = img[0].to_blob {self.format = to } # TIFF
25 File.open("picture10." + to, "wb") {|file| file.puts png}
Something went wrong with that request. Please try again.