pisi / Reel

The premier 360° solution for jQuery.
http://reel360.org
MIT License
690 stars 210 forks source link

Dimension(s) of the target image unknown Ab #334

Open magarrent opened 5 years ago

magarrent commented 5 years ago

Hey there, why only sometimes I'm getting this error?

<img src="/0881005_4.jpg" class="reel" data-responsive="true" data-loops="true" data-speed="0.15" data-cw="true" data-revolution="200" data-images="/0881005_#.jpg|4..15" style="">

martonmiklos commented 4 years ago

Anyone any hints about this issue?

marysmech commented 4 years ago

Same issue here.

martonmiklos commented 4 years ago

@marysmech In my case it turned out that this was caused by the slow loading of the first image (specified with the src tag). My workaround was adding a callback for the image loading and doing a $.reel.scan(); afterwards the image got loaded. See: https://github.com/legyenegysajatvarosod/gallery/blob/gh-pages/js/gallery.js#L10