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

zhenyangze picture zhenyangze  ·  3Comments

fokoz picture fokoz  ·  3Comments

benny-sun picture benny-sun  ·  3Comments

qcol picture qcol  ·  3Comments

piian picture piian  ·  3Comments