nova-advanced-image-field icon indicating copy to clipboard operation
nova-advanced-image-field copied to clipboard

Multiple sizes

Open notfalsedev opened this issue 4 years ago • 3 comments

First things first, thanks for creating this Nova package!

Is it possible to create multiple sizes from one image upload? I need two different sizes of the same image.

Thanks!

notfalsedev avatar Nov 10 '20 16:11 notfalsedev

I'm interested in this as well.

keironwaites avatar Nov 15 '20 16:11 keironwaites

Is there any update on this?

lvidal1 avatar May 19 '21 20:05 lvidal1

Hi @notfalsedev !

Sorry for the (very) late response 😨😆 Did you guys try the store method on the Image field that Nova provides? Check it out here: https://nova.laravel.com/docs/3.0/resources/file-fields.html#customizing-the-entire-storage-process

If this is not enough, I guess making the AdvancedImage able to store multiple files would be possible, but it would require some reflection to do it properly (using an array or sizes, or being able to hook some function to do extra work, etc.). Did you maybe already think about it? Feel free to open a pull request. Otherwise, I will take a look whenever I have time.

Thank you!

ctessier avatar Mar 08 '22 22:03 ctessier