lib/libis/format/converter/jp2_converter.rb in libis-format-0.9.21 vs lib/libis/format/converter/jp2_converter.rb in libis-format-0.9.22
- old
+ new
@@ -1,22 +1,18 @@
# encoding: utf-8
-
-require_relative 'base'
-require 'libis/format/identifier'
-
-require 'mini_magick'
+require 'libis-tools'
require 'fileutils'
+require 'libis/format/config'
-MiniMagick.logger.level = ::Logger::ERROR
-
+require_relative 'base'
module Libis
module Format
module Converter
class Jp2Converter < Libis::Format::Converter::Base
- def self.input_types(format = nil)
+ def self.input_types(_ = nil)
[:TIFF, :JPG, :PNG, :BMP, :GIF, :PDF]
end
def self.output_types(_ = nil)
[:JP2]
@@ -100,11 +96,9 @@
'--set-output-type', 'JP2',
*options
)
target
-
-
end
end
end
end
end