-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Png Error #33
Comments
it does. Please be more specific about your issue. |
Desculpe @giniedp, o problema era o tamanho da imagem(3MB). Já resolvi e está funcionando como você disse. I wrote portuguese because my english is very basic :-/ |
yes, image size is important. everything above 2 Megapixels will be scaled down by some browsers. Spritespin tries to detect that, but the detection might fail on some PNG images, that have transparency |
@giniedp I ran into an issue with a transparent png, the size was all crazy. I've set detectSubsampling:false and everything worked out. |
yes, subsampling detection with transparent images is not reliable. It goes wrong when border pixels or the outline of the image is transparent. There is a comment about that in the source code spritespin/release/spritespin.js Line 252 in ce5c8ea
if anyone knows about a more reliable mechanism your pull reuest is welcome :) |
Yes, I saw the comment, that's how I knew to disable it. Maybe a more clear explanation in the sample code (http://spritespin.ginie.eu/howto.html - Options) would help people that are getting this behavior. Thanks for your plugin! |
agree, that topic should get a section in the howto page |
This plugin not working with png images.
The text was updated successfully, but these errors were encountered: