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

Process Uploaded Images #3

Open
MisterJames opened this issue Feb 6, 2018 · 1 comment
Open

Process Uploaded Images #3

MisterJames opened this issue Feb 6, 2018 · 1 comment

Comments

@MisterJames
Copy link
Collaborator

Users can currently upload images through the CampaignController and EventController via the IImageService. The implementation is here: https://github.com/HTBox/allReady/blob/a0084d88cf5cbc1a14c7df0ec8c43119beff3ecc/AllReadyApp/Web-App/AllReady/Services/ImageService.cs

We need a function that will resize any images that are over a pre-defined maximum dimension.

This function should be triggered from a blob upload. The method would take the image and, if it's larger than the allowed maximum in either dimension, resize the image to the maximum dimension while preserving the aspect ratio.

There should be a setting called maxDimension that is the constraint used to resize the image that can be set from local.settings.json (and ultimately in the Azure Functions deployment).

@jefking
Copy link

jefking commented Feb 28, 2018

You can fork this code: https://github.com/jefking/fl-image-resize

dchristensen added a commit to dchristensen/allReady-processing that referenced this issue Mar 3, 2018
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

2 participants