Skip to content

Commit 8858081

Browse files
committed
now JPEG::Image#clip returns the clipped range.
1 parent 48fb056 commit 8858081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jpeg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ im_clip(int argc, VALUE *argv, VALUE self)
675675
rb_iv_set(jpeg, "quality", INT2FIX(100));
676676
rb_iv_set(jpeg, "gray_p", rb_iv_get(self, "gray_p"));
677677

678-
return jpeg;
678+
return rb_ary_new3(5, jpeg, LONG2NUM(x1), LONG2NUM(y1), LONG2NUM(x2), LONG2NUM(y2));
679679
}
680680

681681
static VALUE

0 commit comments

Comments
 (0)