daijinara said over 3 years ago on Cropping Active Storage Uploads :
  your original code works better on positioning. 

(crop_width + crop_x).to_f,
(crop_height + crop_y).to_f