ebiggerr / sims-backend

Backend of S-IMS built using Spring Boot and other technologies. (The codebase stinks.)
https://github.com/ebiggerr/sims-backend2
MIT License
0 stars 0 forks source link

Resizing uploaded image to certain resolution/size #7

Open ebiggerr opened 3 years ago

ebiggerr commented 3 years ago

Add a new item in the itemlisting ( database table )

image upload directory : src/main/resource/static/images/item/xxx.extension

Feature request: (in imageUpload.java)

Summary : Upload a image file together with the details of item with the POST request.

Resize the image if it exceed certain resolution, save as xxx.extension and second resize on the image the resize the image to thumbnail size the save as xxx-thumbnail.extension

Example: (Flow of the feature)

[POST] to API endpoint "baseURL/inventory/item" item details ( contains SKU) and image resize ( if image too large) and also create a thumbnail size image save as xxx.extension and xxx-thumbnail.extension save path to database "/images/item/xxx.extension" only