Inkscape.org
  1. #1
    mkilgore83 mkilgore83 @mkilgore83

    i am trying to convert a .png to .svg and im having trounle getting the lines to work properly. In the attached images, you can see my original image and my trace bitmap image. I need the lines in the second image to not pinch together like they do after the trace bitmap scan. Any suggestions? Thank you.

    Svg
    Png
  2. #2
    Polygon Polygon @Polygon🌶

    What works here is: Select image and go Object->Transform->Scale=300% then call Trace Bitmap with this settings:

  3. #3
    mkilgore83 mkilgore83 @mkilgore83

    Ok, I was able to fix that issue, but when I save it as a .svg file and open it to view it, it doesn't scale like a .svg should. It reacts like a normal .png.

  4. #4
    Polygon Polygon @Polygon🌶

    Not sure what that mean. Do you have deleted the bitmap after conversion?

  5. #5
    mkilgore83 mkilgore83 @mkilgore83

    Yes, I deleted the bitmap after the conversion. The new image will scale in inkview, but when I open it in a third party viewer or in a web browser, it does not scale.

  6. #6
    Polygon Polygon @Polygon🌶

    To what file extension you´re saving? Check my file please:

     

    Png2Svg4U
  7. #7
    mkilgore83 mkilgore83 @mkilgore83

    I've saved, downloaded and opened your image directly and it still does not scale.

  8. #8
    Polygon Polygon @Polygon🌶

    Can you give me a step-by-step of what you´re doing? I mean do you expect some dynamic scaling when window resizing or something like that? Not sure how to set up a browser for that purpose but I guess you need some java-scripts or something like that.

  9. #9
    mkilgore83 mkilgore83 @mkilgore83

    The first picture is the full image of what I am trying to convert in a web browser. The second image is the same image in the same browser with the window reduced. The third image is an svg in the same full window browser as the first image. The final image is the same as the third image, in the same reduced window, but the image scaled with the window, unlike the first and second images. I'm not sure how the second image was created or saved, but I need the first image to scale like the last.

    I imported the first image into inkscape and resized the page to my drawing/selection. I then used the trace bitmap function and used the multiple scans colors feature and set it to 10 scans and removed all checkmark options. I then applied the update and removed my bitmap image and saved the file as an svg. 

    Screenshot 2021 07 29 083515
    Screenshot 2021 07 29 083438
    Screenshot 2021 07 29 083342
    Screenshot 2021 07 29 083154
  10. #10
    Aero Aero @Aero◻️
    mkilgore83

    I've saved, downloaded and opened your image directly and it still does not scale.

    Use the XML editor in Inkscape and delete width and height if you want it to scale like in Inkview.

  11. #11
    Polygon Polygon @Polygon🌶

    Wow - that´s cool - works in browser too. Didn´t know that. Thanks.

  12. #12
    mkilgore83 mkilgore83 @mkilgore83

    thank you both, it is working like I need it to now

  13. #13
    Aero Aero @Aero◻️

    In Illustrator this is referred to as Responsive SVG.

    https://youtu.be/QG1u3cGXXV0