Skip to content

Commit 84e5b61

Browse files
committed
Still support -append in MiniMagick
1 parent 619c791 commit 84e5b61

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/image_processing/mini_magick.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ def limits(options)
157157

158158
# Appends a raw ImageMagick command-line argument to the command.
159159
def append(*args)
160-
magick.merge! args
160+
if args.empty?
161+
magick.append
162+
else
163+
magick.merge! args
164+
end
161165
end
162166

163167
private

test/mini_magick_test.rb

+5
Original file line numberDiff line numberDiff line change
@@ -597,5 +597,10 @@
597597

598598
assert_similar expected, actual
599599
end
600+
601+
it "still supports -append" do
602+
result = ImageProcessing::MiniMagick.append("wizard:").append.call(@portrait)
603+
assert_dimensions [600, 1440], result
604+
end
600605
end
601606
end

0 commit comments

Comments
 (0)