lib/squib/graphics/save_images.rb in squib-0.15.3 vs lib/squib/graphics/save_images.rb in squib-0.16.0.pre.preview1

- old
+ new

@@ -8,11 +8,11 @@ w, h = compute_dimensions(batch.rotate, batch.trim) preprocessed_save(w, h, batch) else @cairo_surface end - write_png(surface, index, batch.dir, batch.prefix, batch.count_format) + write_png(surface, index, batch) end # :nodoc: # @api private def preprocess_save?(batch) @@ -42,11 +42,11 @@ new_cc.set_source(@cairo_surface, -batch.trim, -batch.trim) new_cc.paint return new_cc.target end - def write_png(surface, i, dir, prefix, count_format) - surface.write_to_png("#{dir}/#{prefix}#{count_format % i}.png") + def write_png(surface, i, b) + surface.write_to_png("#{b.dir}/#{b.prefix}#{b.count_format % i}#{b.suffix}.png") end end end