javascript - PHP/JS - Create thumbnails on the fly or store as files -
for image hosting web application:
for stored images, feasible create thumbnails on fly using php (or whatever), or should save 1 or more different sized thumbnails disk , load those?
any appreciated.
save thumbnails disk. image processing takes lot of resources and, depending on size of image, might exceed default allowed memory limit php. less of concern if have own server application running still takes lot of cpu power , memory resize images. if you're considering creating thumbnails on fly anyway, don't have change - upon first request, create thumbnail source file, save disk , upon subsequent requests read off disk.
Comments
Post a Comment