Sha256: 2d1214e76a979d5999745ba9109a48ca84bf8dfaeadbabc850f1172b2b268ad7
Contents?: true
Size: 1007 Bytes
Versions: 55
Compression:
Stored size: 1007 Bytes
Contents
=begin Copyright 2010, Roger Pack This file is part of Sensible Cinema. Sensible Cinema is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Sensible Cinema is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Sensible Cinema. If not, see <http://www.gnu.org/licenses/>. =end require 'rubygems' require 'sane' require 'RMagick' to = ARGV[1] || 'pnm' img = Magick::Image.read(File.binread ARGV[0]) png = img[0].to_blob {self.format = to } # TIFF File.open("picture10." + to, "wb") {|file| file.puts png}
Version data entries
55 entries across 55 versions & 2 rubygems