Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Glide Laravel Package

league/glide

Glide is an on-demand PHP image manipulation library served over HTTP. Resize, crop, and apply effects with simple URL parameters, with automatic caching and far-future headers. Works with GD, Imagick, or libvips and Flysystem storage.

View on GitHub
Deep Wiki
Context7

layout: default title: Size

Size

Width w

Sets the width of the image, in pixels.

<img src="kayaks.jpg?w=500">

© Photo Joel Reynolds

Height h

Sets the height of the image, in pixels.

<img src="kayaks.jpg?h=333">

© Photo Joel Reynolds

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.
  • 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 parameter for controlling how the image is cropped.
<img src="kayaks.jpg?w=300&h=300&fit=crop">

© Photo Joel Reynolds

Crop Mode crop

Sets where the image is cropped when the fit parameter is set to crop. Accepts top-left, top, top-right, left, center, right, bottom-left, bottom or bottom-right. Default is center.

<img src="kayaks.jpg?w=300&h=300&fit=crop&crop=left">

© Photo Joel Reynolds

Rectangle rect

Crops the image to specific dimensions prior to any other resize operations. Required format: width,height,x,y.

<img src="kayaks.jpg?rect=100,100,915,155">

© Photo Joel Reynolds

Orientation or

Rotates the image. Accepts auto, 0, 90, 180 or 270. Default is auto. The auto option uses Exif data to automatically orient images correctly.

<img src="kayaks.jpg?h=500&or=90">

© Photo Joel Reynolds

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai