plank / laravel-mediable

Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel
MIT License
774 stars 101 forks source link

Call to undefined method Plank\Mediable\ImageManipulation::toPngFormat() #332

Closed khanakia closed 8 months ago

khanakia commented 1 year ago

I am using this example from the docs https://laravel-mediable.readthedocs.io/en/latest/variants.html#image-manipulation-callback

and getting the error Call to undefined method Plank\Mediable\ImageManipulation::toPngFormat()

Screenshot 2023-10-05 at 4 30 48 PM

frasmage commented 1 year ago

looks like there is a typo in the docs. The method should be named ->outputPngFormat()

khanakia commented 1 year ago

Can you update the docs please?

frasmage commented 8 months ago

docs corrected in upcoming major version branch

frasmage commented 7 months ago

Version 6.0.0 has been released.