Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Conversation

@rparree
Copy link

@rparree rparree commented Feb 25, 2015

There is a thin grey border around the embedded img. This is something chrome does when the src is empty (or invalid). One approach is to use padding of the image as opposed to width/height and another solution is to use a 1x1 transparent pixel for the src.

While i was at it, i also fixed the readme text (issue #14)

When not using a proper src, chrome displays a thin gray border around the image. I have set the src to a 1x1 transparent pixel using a base64 encoded value
The transparent pixel was not enough for thin thin border to be removed in Firefox (it was for chrome). Removing `crossOrigin` however did.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant