Skip to content

Process Uploaded Images #3

Description

@MisterJames

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions