Sketching images in a model?

I'm wondering if it makes sense to include the image thumbnail information in the model. As indicated, what sizes of thumbnails you would like to create. Catalog of miniatures. Etc.

Also, when working with sketches and a database, it is advisable to store all created sketches as new entries in the database. Say you have an image record, could you create one-to-many records in Thumbnail?

0


source to share


1 answer


I think this is the "correct" way to do it if you want to go down the path of storing all the thumbnails in the database for whatever reason (maybe you need to store the data with everyone else?).



Personally, I've always found the filenames to follow some scheme, so that they can be processed from the primary key of the image record, and the size is good enough.

+1


source







All Articles