lib/libis/format/converter/jp2_converter.rb in libis-format-2.0.4 vs lib/libis/format/converter/jp2_converter.rb in libis-format-2.0.5
- old
+ new
@@ -49,14 +49,16 @@
def progression_order(value = 'RLCP')
@options[:progression_order] = value
end
- def tile_size(width = 1024, height = 1024)
+ def tile_size(width = 1024, height = nil)
+ height ||= width
@options[:tile_size] = [width, height]
end
- def codeblock_size(height = 6, width = 6)
+ def codeblock_size(width = 6, height = nil)
+ height ||= width
@options[:codeblock_size] = [height, width]
end
def convert(source, target, format, opts = {})
super