lib/img2zpl/image.rb in img2zpl-0.1.0 vs lib/img2zpl/image.rb in img2zpl-0.1.1

- old
+ new

@@ -1,7 +1,7 @@ class Img2Zpl::Image < MiniMagick::Image - def zpl(black_threshold: 0.5) + def to_zpl(black_threshold: 0.5) bytes_per_row = (width % 8).positive? ? (width / 8) + 1 : (width / 8) byte_count = bytes_per_row * height data, line, previous_line, byte = '', '', '', '' get_pixels.each do |row|