october-mediathumb
october-mediathumb copied to clipboard
Added cropping
Crop can be called like so: {{ 'image_name.jpg'|mediathumb_resize('crop', '$my_width|$my_height', $my_quality) }} e.g: {{ 'image_name.jpg'|mediathumb_resize('crop', '1200|500', 70) }}
Separate width and height with pipe (|) in quotes. It uses Intervention's "fit" as opposed to "crop" to make the best fit to the dimensions.
Had a bit of a brain fart with the first pull request.. this should do the trick..
Yeah great - now I will look into it, thanks for contributing. I will work on this over the weekend and add it one way or another. Until now I was planning to add a second method "mediathumb_crop", so I will have to decide if I want to keep that idea or put it all in one method. I will keep you posted here.
Cool, to be honest, it was a bit quick and nasty to get me through this particular project so it may not be the best solution. Thanks for the plugin, saved me a tonne of time! Cheers!
+1 crop would be awesome.
I'm just following up on this request. Will the cropping feature be added in the near future? This feature would be helpful.