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: Advanced usage

Advanced usage

Once your Glide server is configured, there are a number of methods available to interact with it. For basic setups you'll likely only need the outputImage() method. However, if you plan to use Glide with a queuing server or in other more complex configurations, these methods can be useful.

Source

<?php

// Set the source file system
public function setSource(FilesystemOperator $source)

// Get the source file system
public function getSource()

// Set the source path prefix
public function setSourcePathPrefix($sourcePathPrefix)

// Get the source path prefix
public function getSourcePathPrefix()

// Get the source path for an image
public function getSourcePath($path)

// Check if a source file exists
public function sourceFileExists($path)

Cache

<?php

// Set the cache file system
public function setCache(FilesystemOperator $cache)

// Get the cache file system
public function getCache()

// Set the cache path prefix
public function setCachePathPrefix($cachePathPrefix)

// Get the cache path prefix
public function getCachePathPrefix()

// Set the group cache in folders setting
public function setGroupCacheInFolders(true|false)

// Get the group cache in folders setting
public function getGroupCacheInFolders()

// Delete an image from the cache
public function deleteCache($path)

// Get the cache path for an image
public function getCachePath($path, array $params)

// Check if a cache file exists
public function cacheFileExists($path, array $params)

// Set the temporary directory that should be used to store EXIF data
public function setTempDir($tempDir)

// Get the current temporary directory
public function getTempDir()

Api

<?php

// Set the image manipulation Api
public function setApi(ApiInterface $api)

// Get the image manipulation Api
public function getApi()

Responses

<?php

// Set the response factory
public function setResponseFactory(ResponseFactoryInterface $responseFactory)

// Get the response factory
public function getResponseFactory()

Default manipulations

<?php

// Set the default manipulators
public function setManipulators(array $manipulators)

// Get the default manipulators
public function getManipulators()

Base URL

<?php

// Set the base url
public function setBaseUrl($baseUrl)

// Get the base url
public function getBaseUrl()

Image generation

<?php

// Generates and outputs the image
$server->outputImage($path, array $params);

// Generates and returns the image reponse
$server->getImageResponse($path, array $params);

// Generates and returns the image Base64 encoded
$server->getImageAsBase64($path, array $params);

// Generates the image
$server->makeImage($path, array $params);
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