Announcement

Collapse
No announcement yet.

Filetype Image Support: SVG (Scalable Vector Graphics)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Filetype Image Support: SVG (Scalable Vector Graphics)

    Requesting for SVG to be supported.

    Many logo and favicon nowaday use SVG format. (I assume) Most Web Browser already support the display of SVG.

    Here is a more detail article and a chart of webbrowser that support SVG.
    Learn why SVG is superior to pixel graphics in terms of scalability, responsiveness, interactivity, programmability, performance, and accessibility.



  • #2
    Look like SVG will be supported in v7: https://github.com/espocrm/espocrm/issues/2038

    Comment


    • #3
      yuri Will SVG also be supported by TCPDF (displayable in PDF documents) in v7 ?

      Comment


      • esforim
        esforim commented
        Editing a comment
        I have feeling if yes that mean we can Print esignature isn't it?

      • telecastg
        telecastg commented
        Editing a comment
        That would be the idea yes

    • #4
      Hello Just for information,

      template accept base64 image .. sample : https://www.base64-image.de/

      so you can embed the value of the image

      Regardws

      Comment


      • #5
        Hello item

        Does it mean that we would need to convert SVG to base64 first ?

        Best Regards

        Comment


        • esforim
          esforim commented
          Editing a comment
          That sound like a workaround, convert to base64 (encode) and use TCPDF to reconvert (decode) it back to image. But neat trick if it easy to do.

      • #6
        Hello telecastg

        just try on 6.1.8 on template, don't work.
        Convert SVG to Base64 online and use it as a generator, which provides ready-made examples for data URI, img src, CSS background-url, and others


        i have convert svg to img .. copy the result and put in template... save.. that work.. you see SVG..
        but when print-to-pdf .. you see nothing

        but i know in the past i have make base64 encode online normal image, jpeg or other work well.

        Regards

        Comment


        • telecastg
          telecastg commented
          Editing a comment
          Hi, yes, I think that the problem is TCPDF, SVG displays without a problem when I render an Espo document to the browser and use the browser's pdf engine to print.
      Working...
      X