1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
if crop_command crop_command + super.join(' ').sub(/ -crop \S+/, '').split(' ') # super returns an array like this: ["-resize", "100x", "-crop", "100x100+0+0", "+repage"] else super end end target = @attachment.instance if target.cropping? ["-crop", "x++"] end end end end |

