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

Question: resize image on upload #33

Open
stefanoberetta opened this issue Mar 19, 2019 · 0 comments
Open

Question: resize image on upload #33

stefanoberetta opened this issue Mar 19, 2019 · 0 comments

Comments

@stefanoberetta
Copy link

Hi!

Beautiful package, thank you!
I was trying to resize the image using the documentation in this post

(at the end, "Pre Processing")
https://24days.in/umbraco-cms/2014/all-your-images-are-belong-to-umbraco/
using the

 MediaService.Saving += (sender, args) =>{ 
   /*edit the image and save using ImageFactory.Save()*/
}

but it gives me an error

An exception of type 'System.ArgumentException' occurred in mscorlib.dll but was not handled in user code
Additional information: URI formats are not supported.

when the code saves the image.

Could you give me a suggestion to perform a resize (I want the images to be uploaded with a max resolution of 1500px) before the image is saved to the S3 Bucket?

Thank you very much
S

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

No branches or pull requests

1 participant