Laravel-admin: How can i save images in multiple sizes

Created on 3 Sep 2018  ·  4Comments  ·  Source: z-song/laravel-admin

  • Laravel Version: 7.2.7
  • PHP Version: 5.5.42
  • Laravel-admin: 1.5

How can i save images in multiple sizes like
'thumb' => '200x200',
'large'=> '200x200',
'thumb => '200x200',

I have check the documentation no such feature like that.

wontfix

Most helpful comment

You can use custom Field class. For example https://gist.github.com/volkish/d6140885aa18245e13d8dedec0bba872.

All 4 comments

Can you try https://laravel.com/docs/5.6/eloquent#observers
Model save -> Get image -> Resize whatever you want

You can use custom Field class. For example https://gist.github.com/volkish/d6140885aa18245e13d8dedec0bba872.

Thank you @volkish I am grateful. this is the solution i need, I will try it

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seth-shi picture seth-shi  ·  11Comments

yang5664 picture yang5664  ·  10Comments

z-song picture z-song  ·  66Comments

sdauma picture sdauma  ·  16Comments

taimaiduc picture taimaiduc  ·  10Comments