GianlucaGuarini / jQuery.BlackAndWhite

Clientside grayscale images on any browser
http://gianlucaguarini.github.io/jQuery.BlackAndWhite/
Other
310 stars 131 forks source link

Only displaying color version #65

Closed iggmack closed 8 years ago

iggmack commented 8 years ago

Hello, I have some issues with the plugin. The BW wrapper image only displays the filename. In Firefox none of the images is displaying

See what I mean here: http://www.selanderax.se/projekt/

GianlucaGuarini commented 8 years ago

Please change $('img').BlackAndWhite with $('.bwWrapper').BlackAndWhite

iggmack commented 8 years ago

Yes that is correct. I have $('.bwWrapper').BlackAndWhite

Same problem.

GianlucaGuarini commented 8 years ago

Remove the class bwWrapper from your img tags

iggmack commented 8 years ago

Thanks for a quick reply.

The only class on the img's is "wp-post-image" other than the generated "BWFilter" and "BWfade"

GianlucaGuarini commented 8 years ago

Yeah I see it seems the error is somewhere else..now I have no time to investigate where is the problem

iggmack commented 8 years ago

I get this error:

"Image from origin 'http://selanderax.se' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.selanderax.se' is therefore not allowed access."

Any ideas?

GianlucaGuarini commented 8 years ago

Try using relative urls to load your images

iggmack commented 8 years ago

Yes that worked! Thank you

GianlucaGuarini commented 8 years ago

Awesome I will close this issue