lib/chunky_png/canvas/operations.rb in chunky_png-1.3.2 vs lib/chunky_png/canvas/operations.rb in chunky_png-1.3.3

- old
+ new

@@ -175,10 +175,10 @@ raise ChunkyPNG::OutOfBounds, 'Original image height is too small!' end new_pixels = [] for cy in 0...crop_height do - new_pixels += pixels.slice((cy + y) * width + x, crop_width) + new_pixels.concat pixels.slice((cy + y) * width + x, crop_width) end replace_canvas!(crop_width, crop_height, new_pixels) end # Flips the image horizontally, leaving the original intact.