Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update basic-usage.md #282

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Update basic-usage.md #282

merged 1 commit into from
Dec 11, 2024

Conversation

PrabalPradhan1991
Copy link
Contributor

Adds a section "Selecting a driver"

Selecting a driver

By default, the Imagick driver will be used. However if you would like to use GD you can do this by selecting the driver before loading the image.

use Spatie\Image\Image;

$image = Image::load($file)->useImageDriver('imagick'); // for imagick
$image = Image::load($file)->useImageDriver('gd'); // for gd

Adds a section "Selecting a driver"
@freekmurze freekmurze merged commit a151348 into spatie:v2 Dec 11, 2024
4 of 7 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants