verumconsilium / laravel-browsershot

Browsershot wrapper for Laravel 5
MIT License
110 stars 19 forks source link

Method VerumConsilium\Browsershot\Screenshot::fit() does not exists #9

Closed Binternet closed 5 years ago

Binternet commented 5 years ago

It looks like the fit method is not chained:

    return \VerumConsilium\Browsershot\Facades\Screenshot::loadUrl('https://example.com')
    ->windowSize(1920, 1080)
    ->fit('contain', 200, 200)
    ->download();

This returns:

BadMethodCallException
Method VerumConsilium\Browsershot\Screenshot::fit() does not exists
sgtpepper9907 commented 5 years ago

It looks like Browsershot does not provide a fit method. Can you tell me where did you get this method from?

Binternet commented 5 years ago

https://github.com/spatie/browsershot Search for 'fit' and you'll see it in the examples

sgtpepper9907 commented 5 years ago

The fit() method (allong with some others) are part of the Spatie\Image package, now the other manipulations are available with the new release #10