Skip to content

Commit

Permalink
fix: scale_x should be using x_coord, not 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLukeSmith committed Sep 13, 2023
1 parent f799a25 commit 6f65408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/morandi/crop_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def apply_crop(pixbuf, x_coord, y_coord, width, height, fill_col = 0xffffffff)
dest_height: copy_h,
offset_x: paste_x - offset_x,
offset_y: paste_y - offset_y,
scale_x: 1,
scale_x: x_coord,
scale_y: y_coord,
interpolation_type: :hyper,
overall_alpha: 255
Expand Down

0 comments on commit 6f65408

Please sign in to comment.