Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple sizes #59

Open
notfalsedev opened this issue Nov 10, 2020 · 3 comments
Open

Multiple sizes #59

notfalsedev opened this issue Nov 10, 2020 · 3 comments

Comments

@notfalsedev
Copy link

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!

@keironwaites
Copy link

I'm interested in this as well.

@lvidal1
Copy link

lvidal1 commented May 19, 2021

Is there any update on this?

@ctessier
Copy link
Owner

ctessier commented Mar 8, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants