Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111074

Prototype SVG to PNG conversion tool using Qt WebEngine

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • SVG Support
    • None
    • All

    Description

      Based on the discussion in QTBUG-109067, a build-time tool to convert SVGs to PNGs would solve the most immediate need.

      SVG images could be rendered into PNGs for multiple resolutions (image.png, image@2x.png, image@3x.png, image@4x.png...) at compile time. The PNGs could be added as resources with a given prefix.

      The CLI tool would have options such as:

      • which resolutions to generate pixmaps for
      • which resource prefix to use (or perhaps whether to embed resulting pixmaps as resources at all, although without that it might become very cumbersome to write reliable code that loads them).
      • perhaps image format (PNG as default might be enough; no value in supporting lossy formats, perhaps?)

      Attachments

        1. main.cpp
          5 kB
        2. proj.zip
          5 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              aleksandr.reviakin Aleksandr Reviakin
              vestbo Tor Arne Vestbø
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes