/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/size.md (1844B)
--- layout: default title: Size --- # Size ## Width `w` Sets the width of the image, in pixels. ~~~ html ~~~ [![© Photo Joel Reynolds](https://glide.herokuapp.com/1.0/kayaks.jpg?w=500)](https://glide.herokuapp.com/1.0/kayaks.jpg?w=500) ## Height `h` Sets the height of the image, in pixels. ~~~ html ~~~ [![© Photo Joel Reynolds](https://glide.herokuapp.com/1.0/kayaks.jpg?h=333)](https://glide.herokuapp.com/1.0/kayaks.jpg?h=333) ## Fit `fit` Sets how the image is fitted to its target dimensions. ### Accepts: - `contain`: Default. Resizes the image to fit within the width and height boundaries without cropping, distorting or altering the aspect ratio. - `max`: Resizes the image to fit within the width and height boundaries without cropping, distorting or altering the aspect ratio, and will also not increase the size of the image if it is smaller than the output size. - `fill`: Resizes the image to fit within the width and height boundaries without cropping or distorting the image, and the remaining space is filled with the background color. The resulting image will match the constraining dimensions. - `stretch`: Stretches the image to fit the constraining dimensions exactly. The resulting image will fill the dimensions, and will not maintain the aspect ratio of the input image. - `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. See the [crop](api/crop/) page for more information. ~~~ html ~~~ [![© Photo Joel Reynolds](https://glide.herokuapp.com/1.0/kayaks.jpg?w=300&h=300&fit=stretch)](https://glide.herokuapp.com/1.0/kayaks.jpg?w=300&h=300&fit=stretch)