Skip to content
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 tiles? #5

Open
edemaine opened this issue Jul 21, 2016 · 2 comments
Open

png tiles? #5

edemaine opened this issue Jul 21, 2016 · 2 comments

Comments

@edemaine
Copy link

edemaine commented Jul 21, 2016

Could we allow png files in addition to svg for individual tiles? Should just have to wrap them in an <image> tag, but would be nice to be automatic. This would be especially helpful for retro video games.

@edemaine edemaine changed the title png input? png tiles? Jul 21, 2016
@edemaine
Copy link
Author

...with style="image-rendering:optimizeSpeed" in the <image> tag, please.

@edemaine
Copy link
Author

edemaine commented Oct 27, 2016

Yuck. Chrome wants image-rendering:pixelated and Inkscape wants image_rendering:optimizeSpeed. Is there no one setting that everyone is happy with? Update: No. See these tests; I reported this issue as bugs for Inkscape and Chrome.

I tried directly adding an <image> tag in the mapping file, but the parser dies if I use a proper xlink:href="foo.png" tag (something about the xlink namespace). Chrome is OK with just href="foo.png", but Inkscape really needs the xlink: prefix. So this bug needs to be fixed in any case...

In a perfect world, we could use SVG Tiler to create PNG files directly, with the resolution matching the image images. Right now, the best way to do that seems to be ImageMagick's montage. :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant