Skip to content

Resizing uploaded image to certain resolution/size #7

Description

@ebiggerr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions