/home/techb158/ileadtechnology.com/vendor/league/glide/docs/1.0/api
NameSizeModeActions
adjustments.md12340644editdlrm
background.md3880644editdlrm
border.md10760644editdlrm
colors.md20540644editdlrm
crop.md17460644editdlrm
effects.md10220644editdlrm
encode.md7290644editdlrm
flip.md3000644editdlrm
orientation.md4250644editdlrm
pixel-density.md6710644editdlrm
quick-reference.md26160644editdlrm
relative-dimensions.md4940644editdlrm
size.md18440644editdlrm
watermarks.md44340644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/league/glide/docs/1.0/api/crop.md (1746B)
--- layout: default title: Crop --- # Crop ## Fit `fit=crop` Resizes the image to fill the width and height boundaries and crops any excess image data. The resulting image will match the width and height constraints without distorting the image. ~~~ html ~~~ [![© Photo Joel Reynolds](https://glide.herokuapp.com/1.0/kayaks.jpg?w=300&h=300&fit=crop)](https://glide.herokuapp.com/1.0/kayaks.jpg?w=300&h=300&fit=crop) ### Crop Position You can also set where the image is cropped by adding a crop position. Accepts `crop-top-left`, `crop-top`, `crop-top-right`, `crop-left`, `crop-center`, `crop-right`, `crop-bottom-left`, `crop-bottom` or `crop-bottom-right`. Default is `crop-center`, and is the same as `crop`. ~~~ html ~~~ ### Crop Focal Point In addition to the crop position, you can be more specific about the exact crop position using a focal point. This is defined using two offset percentages: `crop-x%-y%`. ~~~ html ~~~ You may also choose to zoom into your focal point by providing a third value: a float between 1 and 100. Each full step is the equivalent of a 100% zoom. (eg. `x%-y%-2` is the equivalent of viewing the image at 200%). The suggested range is 1-10. ~~~ html ~~~ ## Crop `crop` Crops the image to specific dimensions prior to any other resize operations. Required format: `width,height,x,y`. ~~~ html ~~~ [![© Photo Joel Reynolds](https://glide.herokuapp.com/1.0/kayaks.jpg?crop=100,100,915,155)](https://glide.herokuapp.com/1.0/kayaks.jpg?crop=100,100,915,155)