DrewTCurrie / 55ATAT

Senior Design Team 55 at MSU
0 stars 0 forks source link

Client Modal - In-Browser image formatting #23

Closed samlovering closed 10 hours ago

samlovering commented 2 weeks ago

PTC has discovered that high resolution images render sideways, and need manual cropping in order to properly render on the badge.

I propose we create an in browser solution to handle this.

These two libraries will provide with much of what we need, we will need some kind of wrapper to upload the image to the webpage (Please do not send anything but the cropped/adjusted image to the backend) and then do the cropping.

easy-crop has a few demos to use, image-crop has its api listed out in the npm. https://www.npmjs.com/package/react-easy-crop https://www.npmjs.com/package/react-image-crop