php-glide

How to use image manipulation library Glide with plain PHP

耗尽温柔 提交于 2019-12-12 03:25:21
问题 I'm trying to use PHP Glide image manipulation library for one of my projects. I've followed their docs given at here - http://glide.thephpleague.com/1.0/simple-example/ . I've created a "routes.php". Here is my code. <?php require 'vendor/autoload.php'; // Setup Glide server $server = League\Glide\ServerFactory::create([ 'source' => 'img/users/source', 'cache' => 'img/users/cache', ]); // echo '<pre>'; // print_r($server); // echo '</pre>'; // You could manually pass in the image path and

Laravel Glide not finding images at urls with extension

回眸只為那壹抹淺笑 提交于 2019-12-11 12:12:49
问题 I am using Glide, and followed this video https://vimeo.com/118089742 which basically is a walk-through for the instructions on the official site http://glide.thephpleague.com/ Here is my service provider: $this->app->singleton('League\Glide\Server', function ($app) { return \League\Glide\ServerFactory::create([ 'source' => public_path(), 'cache' => public_path(), 'source_path_prefix' => 'images/uploads', 'cache_path_prefix' => 'images/cache', 'base_url' => '/img/', ]); }); And here is my