php - Should I generate each thumbnail dynamically every time it is requested, or store them on image upload? -
php - Should I generate each thumbnail dynamically every time it is requested, or store them on image upload? -
this question has reply here:
php image resize on fly vs storing resized images 4 answersproblem - wanted set image-uploading feature in website. wanted show both- original image , little thumbnail of image.
choices - way improve - create separate image (thumbnail) in directory when image uploaded or show smaller version reducing height , width in fixed ratio every time image requested?
how doing currently - later 1 sounds improve me because won't taking much size on disk has resize image 1 time again , again. 1 think better?
this general question web application, no language in specific.
any thought how facebook or google it?
question - question how generate thumbnails , show them on website - creating re-create of original image smaller dimension or generating thumbnail dynamically every time requested.
creating thumbnail on upload improve option. if storage concern convert them on request , cache result in memory store. if requested 1 time again before cache expires, no conversion needed.
storage pretty cheap, not go complexity.
php image web-applications upload thumbnails
Comments
Post a Comment