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

add <image> support #113

Closed
codingBobo opened this issue Oct 25, 2022 · 6 comments
Closed

add <image> support #113

codingBobo opened this issue Oct 25, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@codingBobo
Copy link

such as this, the image block is lost

<?xml version="1.0" encoding="UTF-8"?> <svg width="280px" height="280px" viewBox="0 0 280 280" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>v2_detection@2x</title> <defs> <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox"> <use xlink:href="#image-2"></use> </pattern> <image id="image-2" width="170" height="170" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAYAAAA9dtSCAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAqqADAAQAAAABAAAAqgAAAADfcN5xAAAet0lEQVR4Ae1d3ZpcN26U/PkqF3udJ8lr5dmT22xWe4pNcEAc/JLsn7F15B6SQKEAEtXsGUm2f/7nf//Prx+rz3rkjx8rsSzmV4aA4d0tHsb947/+4aYbzkzeDIYIFax5TgqWaNSxiieS1TiK7+MfYl1b/qzBJ/RKLIv5+YMtJuJvsjjUwLHbCl8FiwRV/CjqzOTXr18/9oSKOnb0shN75gweLJ9Sx8k9XVzmbXo4j0l3QOAQKZ59oYLllY1mucJblWFR5vZzmm+7oAWCqniqeCppNY7ir5FECtMfx0S22sTVOLahv+w022wF99bbVKmn2iMuUsQ+btR3i6Wan+HDW7V6Qn9lfFVAVTzObiVGnLkUKdxfH/2s+SIuvzzBkc+WQ2ZryuJyWV+HOiAMtdhn8arJvoyaSOH9EipWJ5q1ylGNY/jftyqa9/WoH/uvEN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KP52SZncQvCaScT8I96rWMM4nnYnlAVsXHyo/NKriw2izu6kQ8mKwhn7CKIOSXWdaHuNFmJ/X2bjtafnQRCOpIsyHFCrGtCVYSW3rASG4pUiUnnOwAM6zuQY1DsNn0QLU6C/Ius17eke8R1ob5ZNOFBna7vNF+4gSSg0vcKNpn+BkvkcMUaxNeEuts0JT68rZSY2yGtGJ7Fu1LLp8UEojHLXY0jQie+JlQiXBkVYYQireZRclQpvgPevZlObcARjZsiiAtrN+LzQn2HCN6R0+3ChzmNpqpVVrAqwTnjilj/DU0U/2taNlHFAAAAAElFTkSuQmCC"></image> </defs> <g id="main" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="check" transform="translate(-235.000000, -220.000000)"> <g transform="translate(235.000000, 220.000000)" id="v2_detection"> <g transform="translate(40.000000, 40.000000)"> <circle id="Oval" stroke="#FFFFFF" stroke-width="5" cx="100" cy="100" r="100"></circle> <circle id="specialCircularSymbol" fill="url(#pattern-1)" cx="100" cy="100" r="85"></circle> <circle id="Oval" stroke="#FFFFFF" stroke-width="1.85714286" opacity="0.300000012" cx="100" cy="100" r="65"></circle> <circle id="Oval" stroke="#FFFFFF" stroke-width="2" opacity="0.600000024" cx="100" cy="100" r="40"></circle> <circle id="Oval" fill="#FFFFFF" cx="100" cy="100" r="9"></circle> <line x1="100.111111" y1="100" x2="100.111111" y2="0" id="Line-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round"></line> </g> </g> </g> </g> </svg>

@ivantishchenko
Copy link

@sammycage

I can take care of this. I already have the parsing of image tags.

The drawing of raster texture will be performed with plutovg_image once this is merged into plutovg.
sammycage/plutovg#30

Once the above is merged the only thing left is to decode an image and draw the bitmap with plutovg_image inside a layout() method of ImageElement.

@ColleoniLorenzo
Copy link

any news on this?

@ivantishchenko
Copy link

@sammycage

what would be the best way to proceed?

I think it would make the most sense to merge sammycage/plutovg#30 first and then use plutovg as a submodule in lunasvg such that plutovg_image becomes accessible from lunasvg.

Alternatively, we could just apply the changes with plutovg_image to the local copy of plutovg inside lunasvg as one single commit.

@sudoLife
Copy link

@ivantishchenko @sammycage any news on this? Great work on the library, and this feature would be a very appreciated feature as well :)

@sammycage
Copy link
Owner

@sudoLife text and image will be implemented in the next major release.

@sammycage
Copy link
Owner

@codingBobo Support for <image> elements has been added in the latest version. Please update to the newest release to use this feature.

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

No branches or pull requests

5 participants