How should images be stored when multiple sizes are needed?
Posted
by Josh Curren
on Stack Overflow
See other posts from Stack Overflow
or by Josh Curren
Published on 2010-05-31T00:45:17Z
Indexed on
2010/05/31
0:52 UTC
Read the original article
Hit count: 241
What is the best way to store images? Currently when an image is uploaded I resize it to 3 different sizes (a thumbnail, a normal size, and a large size). I save in a database a description of the image, the format, and use the id number from the database as the image name. Each size image has its own directory.
Should I be storing the images in the database? Should I only be storing the larger size and generate the thumbnail as needed? Or any other ideas you have?
© Stack Overflow or respective owner