Dimensions
The Dimension class is used to provide additional methods for images and possibly other objects with width and height to recalculate the size, get the ratio or just the width and height.
- $dimensions->crop()
- $dimensions->fit()
- $dimensions->fitHeight()
- $dimensions->fitWidth()
- $dimensions->fitWidthAndHeight()
- $dimensions->height()
- $dimensions->landscape()
- $dimensions->orientation()
- $dimensions->portrait()
- $dimensions->ratio()
- $dimensions->resize()
- $dimensions->square()
- $dimensions->thumb()
- $dimensions->toArray()
- $dimensions->width()
- Dimensions::forImage()
- Dimensions::forSvg()
- new Dimensions()