As per our project requirements we need to save artworks (images with JPG, PNG, TIFF etc image formats) which can size anywhere from 1KB to 1MB. We are now storing them in AWS S3 bucket.
I have below few questions on our implementation:
- Is it a good solution to store all the images in AWS S3 bucket?
- Can I directly fetch a thumbnail from AWS S3 bucket for all the image files? If yes, how can I fetch that thumbnail?
- Can I create a thumbnail (of size ~1KB) every time I upload an image and store the byte array in RDBMS? (This is just to avoid fetching the image content from S3 bucket, because those thumbnails are used just for preview purposes)
- Can I compress the images in java? How to do that so that I get the least minimal byte size?