Filetype Image Support: SVG (Scalable Vector Graphics)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    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.


  • esforim
    Active Community Member
    • Jan 2020
    • 2204

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

    Comment

    • telecastg
      Active Community Member
      • Jun 2018
      • 907

      #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
    • item
      Active Community Member
      • Mar 2017
      • 1476

      #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
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • telecastg
        Active Community Member
        • Jun 2018
        • 907

        #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.
      • item
        Active Community Member
        • Mar 2017
        • 1476

        #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

        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        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...