php - How can I best generate/load a thumbnail -
php - How can I best generate/load a thumbnail -
i'm building iphone application displays photos. first in uicollectionview thumbnail bigger in fullscreen.
for improve loading behavior load smaller images first thumbnail part. now: should via php , resize existing big image or should save sec image on server xxx_thumbnail.png , load one?
thanks tip.
chris
resizing image can quite intensive process server, larger images. imagine if 1000 users nail @ same time. absolutely should 1 time per image, , save later requests. whether pre-render thumbnails or not matter, executing file_exists
pretty cheap. can render them once, @ time requested. depends how want access them (e.g. through script or thumbnail url directly)
php ios xcode
Comments
Post a Comment