spatie / laravel-glide

Easily convert images with Glide
https://freek.dev/2015/12/easily-convert-images-with-glide/
MIT License
424 stars 51 forks source link

max size not show #65

Closed alinasiri1367 closed 7 years ago

alinasiri1367 commented 7 years ago

Hello This package also was shown the photos to enlarge? like this : ![2] (https://cloud.githubusercontent.com/assets/10260838/25134427/c502b386-2464-11e7-87da-003ecd28ac70.jpg) 'maxSize' => 12000 * 12000,

freekmurze commented 7 years ago

Do my knowledge maxSize is not a valid parameter.

Please refer to the Glide documentation to learn which parameters are possible: http://glide.thephpleague.com/

alinasiri1367 commented 7 years ago

I not fount any parameters. I use this code in AppServiceProvider $this->app->singleton( 'League\Glide\Server', function ( $app ) { $filesystem = $app->make( 'Illuminate\Contracts\Filesystem\Filesystem' ); return \League\Glide\ServerFactory::create( [ 'max_image_size' => 1000000*100000, 'source' => public_path(), 'cache' => storage_path(), 'source_path_prefix' => 'files/', 'cache_path_prefix' => 'glide/cache/' ] ); } ); and my Route is: Route::get( '/showImage/{w}/{h}/{src}', function ( League\Glide\Server $server, $w, $h, $src ) { $server->outputImage( $src, [ 'w' => $w, 'h' => $h, 'fit' => 'crop' ] ); } )->where( 'src', '.+' ); when i this route: (http://yalda.ali/showImage/5000/1200/IfdsfdsfdsMG_0319.jpg) Not Show any picture???

But small image correct???