Incorrect text. svg to png QtWebkit



  • Hello!
    Sorry for my bad English.

    Please, help me!

    I try to convert svg to png with WebKit. For a basis I took such example http://www.qtcentre.org/threads/22982-Create-Transparent-PNG-Image

    In the end, Qtwebkit render text incorrect. pictures in attachments.
    When reducing the picture size ".svg", the text becomes even worse in ".png"

    How can i fix it?

    https://yadi.sk/d/dQLH5LV1n5fjh

    Thanks


  • Moderators

    @Glopirin
    what do you expect? Every downscaling results in loss of quality.
    And since SVG is a vector format and you are converting to a pixel format you can expect such an effect for sure.
    What is the result size of the PNG?
    Beside that, why do you use QtWebkit for this purpose? Qt also offers a QtSVG module ,which is also way more lightweight than the QtWebkit module.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.