scaleflex / js-cloudimage-responsive

Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load. Any questions or issues, please report to https://github.com/scaleflex/js-cloudimage-responsive/issues
Other
68 stars 15 forks source link

Using placeholder image breaks mobile calculation #4

Closed TimTilroy closed 5 years ago

TimTilroy commented 5 years ago

Hello,

We are using the plugin to load most of our images on both desktop and mobile. It's working great however we recently added a placeholder image of 1x1px to make sure no broken image shows during page load. This seems to have broken the calculation of the image width on mobile screens with a higher density. An example is visible on the frontpage of https://www.ava.be. On mobile the first image is very bad quality compared to how it was before.

See these examples: cloudimage-responsive-bq cloudimage-responsive-gq

Any way we can fix this problem? We are using the latest version of the plugin (2.1.0).

Regards

dzmitry-stramavus commented 5 years ago

@TimTilroy , hey

I'll check the issue during the week. Busy with launching another project

dzmitry-stramavus commented 5 years ago

@TimTilroy, hey

fixed in v2.2.0

TimTilroy commented 5 years ago

Thanks Dmitry!

We are upgrading the plugin in our next release.

Regards