We are building a web app which will have a lot of images being uploaded. Which is the best Solution to optimize these images and store it in on the website ?
And also is there a way i can also auto enhance the images which are being uploaded ?
yyyymmddhhiissnnnn
, where yyyymmdd
is year, month and date, hhiiss
- hour, minutes and seconds, nnnn
- number of image in that second, i.e., 0001
for first image, 0002
for second image etc. This will give you unique filenames with fine ordering.images/<x>/<y>/<z>/<filename>
. This could also be spanned across multiple servers._icon
, _profile
and _full
might be added to filenames of original images. Depending on your resources and the amount of images that are being uploaded at the same time, you can do this either in realtime (in the same HTTP request) or use some background processing (cron job that continuously checks if there are new images to be converted).As for auto enhancing images - it is possible, but only if you know exactly what must be done with images. I think that analyzing every image and deciding what should be done with it might be too complex and take too much resources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With