Angrycreative / bj-lazy-load

WordPress plugin for lazy loading
GNU General Public License v2.0
40 stars 25 forks source link

Tiny image sizes created #32

Closed brit77 closed 5 years ago

brit77 commented 7 years ago

I recently found that BJ Lazy Load is creating a 30 x ~20px image size for each upload since late 2016. Is this on purpose? I can't find why this is happening or how to disable it.

kaalis commented 7 years ago

/wp-content/plugins/bj-lazy-load/bj-lazy-load.php: add_image_size( 'tiny-lazy', 30, 30 );

Happens because of this code, don't know why it's needed.

AronTornberg commented 7 years ago

Hi,

The image size is used for the low-res preview image feature. We will look into making this optional.

brit77 commented 7 years ago

Version 1.0.9 appears to have removed the tiny image size as per the changelog. I used the Force Regenerate Thumbnails plugin to remove these unneeded thumbnails. So, thanks...this appears to be resolved!

Final question: The changelog says the tiny thumbnails are created only when low-res preview image is used. When are low-res preview images called for?

jan-san commented 5 years ago

With low-res preview images, it's possible to first show a blurry version of the image which transitions into the full resolution picture - you can see this effect in any Medium article.