Inkscape.org
Beyond the Basics Why are my svg exports completely off?
  1. #1
    burloe burloe @burloe

    I've tried to figure this out with so many of my exports on many different files but almost every time I export something. It looks awful where certain elements are missing, or display completely differently than they do in Inkscape and they're extremely blurry and/or have pixelation. I just finished making an icon with a mesh gradient circle. For some reason, the mesh is extremely blurry and pixelated. Additionally, the file looks different when displayed through different software. Opening the with my browser, I can see every element(with the blurry mesh gradient), when I add the source file here, the gradient goes missing. 

    I can't for the life of me figure out why this is happening or what I'm doing wrong. Here's the icon I made where you can see the crisp main logo but the severe issues with the other elements. Left image is the source file, middle is a screenshot of how it looks when opening it through my browser and the right is how it shows in inkscape.

     

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    I'm open to correction here, but as far as I know, Inkscape's mesh gradients don't comply with svg standards so browsers don't understand them. To display these accurately, they must be converted to bitmaps, hence the blurring. Perhaps you can increase the export resolution.

  3. #3
    burloe burloe @burloe

    Hmm. That makes sense but converting them to makes them as blurry(if not more) and increasing the resolution doesn't do much I'm afraid. 

    Image 2024 10 31 095226208
  4. #4
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Sorry, my instructions were much too brief.

    Select the shape with the mesh gradient then [Edit > Make Bitmap Copy] or [alt+b]. This creates a bitmap on top of the original shape. You can leave the original underneath, or delete it, or move it off the page, or move it to a hidden layer. You can change the resolution in preferences. [shift+ctrl+p] [Imported Images] [Resolution for create bitmap copy: XX dpi].

    Here's an svg with a mesh gradient on the left and a bitmap copy on the right. Download it and compare browser rendering to Inkscape rendering. 

  5. #5
    burloe burloe @burloe

    No worries at all. That worked great, thank you so much!

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Why are my svg exports completely off?