Creating a dynamic sprite PHP

I have a website where users upload images, and I display many images from users to users. Most of the images are jpg, but some of them are PNG.

I use manually created sprites for the images I created, but the user's current images are loaded individually, which increases the page load time.

I worked a bit on PHP Dynamic Sprite Create, as shown in the links below:

http://www.mummey.org/2008/12/csprites-a-dynamic-css-sprite-generator-in-php5/ http://net.tutsplus.com/articles/news/dynamic-sprite-framework- with-php-new-plus-tutorial /

Does anyone have this functionality, and if so, how / what did they use? recommendations?

amuses

+6
source share
1 answer

I would combine PLupload (plupload.com) with the Sprite CSS class from PHPClasses.org (http://www.phpclasses.org/package/6560-PHP-Generate-sprite-images-and-CSS-to-use-image- styles.html) .

I recommend using PLupload because of the client-side image resizing feature, which can reduce a lot of server processing.

+3
source

Source: https://habr.com/ru/post/895470/


All Articles