Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If your SVG file is properly crafted (viewBox & maybe preserveAspectRatio attributes) then you can do this:

    <object type="image/svg+xml" width="640" height="480" data="http://example.com/image.svg">
        <img src="http://example.com/image.png"/>
    </object>


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: