All Projects → spatie → Laravel Glide

spatie / Laravel Glide

Licence: mit
Easily convert images with Glide

Projects that are alternatives of or similar to Laravel Glide

Cube2sphere
Python script to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map.
Stars: ✭ 120 (-63.96%)
Mutual labels:  image, convert
Laravel Image Optimizer
Optimize images in your Laravel app
Stars: ✭ 873 (+162.16%)
Mutual labels:  laravel, image
Magick.net
The .NET library for ImageMagick
Stars: ✭ 2,071 (+521.92%)
Mutual labels:  image, convert
React Native Fast Image
🚩 FastImage, performant React Native image component.
Stars: ✭ 6,500 (+1851.95%)
Mutual labels:  image, glide
Laravel Proximage
🌐 Laravel Proximage is a handy package for proxying images.
Stars: ✭ 156 (-53.15%)
Mutual labels:  laravel, image
Pdf To Image
Convert a pdf to an image
Stars: ✭ 906 (+172.07%)
Mutual labels:  image, convert
Laravel Imageup
Auto Image & file upload, resize and crop for Laravel eloquent model using Intervention image
Stars: ✭ 646 (+93.99%)
Mutual labels:  laravel, image
Draggableimageviewer
大图浏览 & 图片查看&拖拽退出。类似于微信、B站的图片 & 视频浏览器。
Stars: ✭ 153 (-54.05%)
Mutual labels:  image, glide
Img
🖼Image hosting powered by laravel
Stars: ✭ 92 (-72.37%)
Mutual labels:  laravel, image
Laravel Imageupload
Upload image using Laravel's build in function and resize it automatically.
Stars: ✭ 73 (-78.08%)
Mutual labels:  laravel, image
Imagemagick
🧙‍♂️ ImageMagick 7
Stars: ✭ 6,400 (+1821.92%)
Mutual labels:  image, convert
Borgert Cms
Borgert is a CMS Open Source created with Laravel Framework 5.6
Stars: ✭ 298 (-10.51%)
Mutual labels:  laravel, image
Materialimageloading
Material image loading implementation
Stars: ✭ 396 (+18.92%)
Mutual labels:  image, glide
Rximagepicker
Android图片相册预览选择器、支持AndroidX,支持图片的单选、多选、图片预览、图片文件夹切换、在选择图片时调用相机拍照
Stars: ✭ 85 (-74.47%)
Mutual labels:  image, glide
Picassopalette
Android Lollipop Palette is now easy to use with Picasso !
Stars: ✭ 366 (+9.91%)
Mutual labels:  image, glide
Nova Advanced Image Field
🌄📐 A Laravel Nova advanced image field with cropping and resizing using Cropper.js and Intervention Image
Stars: ✭ 67 (-79.88%)
Mutual labels:  laravel, image
Image
PHP Image Manipulation
Stars: ✭ 12,298 (+3593.09%)
Mutual labels:  laravel, image
Korkut
Quick and simple image processing at the command line. 🔨
Stars: ✭ 310 (-6.91%)
Mutual labels:  image, convert
Laravel Api Query Builder
Laravel & Lumen Api Query Builder Package
Stars: ✭ 324 (-2.7%)
Mutual labels:  laravel
Awesome Laravel Education
A curated list of resources for learning about the Laravel PHP Framework
Stars: ✭ 327 (-1.8%)
Mutual labels:  laravel

Easily convert images with Glide

Latest Version Test Status Code Style Status Software License Total Downloads

This package provides an easy to use class to manipulate images. Under the hood it leverages Glide to perform the manipulations.

Here's an example of how the package can be used:

GlideImage::create($pathToImage)
	->modify(['w'=> 50, 'filt'=>'greyscale'])
	->save($pathToWhereToSaveTheManipulatedImage);

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package through Composer.

composer require spatie/laravel-glide

In Laravel 5.5 the service provider and facade will automatically get registered. In older versions of the framework just add the service provider and facade in config/app.php file:

'providers' => [
    ...
    Spatie\Glide\GlideServiceProvider::class,
    ...
];

...

'aliases' => [
	...
    'GlideImage' => Spatie\Glide\GlideImageFacade::class,
    ...
]

You can publish the config file of the package using artisan.

php artisan vendor:publish --provider="Spatie\Glide\GlideServiceProvider"

The config file looks like this:

<?php

return [

    /*
     * The driver that will be used to create images. Can be set to gd or imagick.
     */
    'driver' => 'gd',
];

Usage

Here's a quick example that shows how an image can be modified:

GlideImage::create($pathToImage)
	->modify(['w'=> 50, 'filt'=>'greyscale'])
	->save($pathToWhereToSaveTheManipulatedImage);

Take a look at Glide's image API to see which parameters you can pass to the modify-method.

Testing

You can run the tests with:

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Previous versions

Previous versions of this package had PHP 5.4 support and the ability to generate images on the fly from an url.

The previous versions are unsupported, but they should still work in your older projects.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].