Inkscape.org
Beyond the Basics "Pixelated graphics" problem
  1. #1
    Tetriser2018 Tetriser2018 @Tetriser2018

    Hello, first time posting here and I already know how Inkscape works.

    However, I have a problem with copy-pasted objects, where they became "pixelated" when scaled and zoomed. I'm sure that I don't have the Pixellize filter set on them. Is this a bug?

  2. #2
    brynn brynn @brynn

    Welcome to the forum!

    If you're a Mac user, this is a known bug.  Pasting causes the vector object to be converted to a raster image.  And of course, any raster image will pixelate on scaling or zooming.  Here's info:  https://inkscape.org/learn/faq/#copypaste-rasterizes-objects

    You need to use Duplicate, instead of copy/paste.

    If you're not a Mac user, we will need to investigate further.  There have been sporadic reports of something similar on Windows, but so far, we can't dependably reproduce it (and it can't be fixed until we know how to reproduce it).

  3. #3
    Tetriser2018 Tetriser2018 @Tetriser2018

    I'm on Windows. And the issue is the objects were pixelated as how it was having the Pixellize filter. Is this the problem that has been sporadically reported?

  4. #4
    brynn brynn @brynn

    I don't know if it's the same without more info.

    Was the image originally a raster image?  Or was it a vector image that became rasterized when you pasted it?

    Of course, any raster image will pixelate when scaled or zoomed.  So if you imported it as raster, that's no surprise.  But if it was originally vector, which is what I thought you meant, that's a problem.

  5. #5
    Tetriser2018 Tetriser2018 @Tetriser2018

    Yes, it's originally a vector, from another Inkscape document. And it was pasted as a vector but pixelated.

  6. #6
    brynn brynn @brynn
    *

    Well it can't paste as vector and then pixelate.  Not if it's still vector.

    I can see the pixelated areas in your screenshot, but I can't tell what kind of object it is.

    Can you share the SVG file?

  7. #7
    Tetriser2018 Tetriser2018 @Tetriser2018

    This is the one that was problematic to me, and to reproduce the pixelation bug:

    This one's for simply viewing:

    1. Hide the current visible layer
    2. Show the "CookieLaunchout" layer
    3. Save and exit
    4. Reopen, and you'll see that it returned to normal, repeat step 1
    5. Repeat Step 2 but with the "Mini Game Titans" layer
    6. Repeat Step 1 again
    7. Repeat Step 2, now the objects inside the layer are still pixelated

    And this is about my problem, copy any of the pixelated object and paste it into any other document. Though you may see it normally, zoom out or scale and you will see it's starting to pixelate.

  8. #8
    brynn brynn @brynn
    *
    Tetriser2018

    4.  Reopen, and you'll see that it returned to normal, repeat step 1

    What is "normal"?  Do you mean that when you open it, it's showing whatever the current visible layer was before, instead of CookieLaunchout layer?

    Just for clarity, is this what you mean us to do:

    1. Hide the current visible layer
    2. Show the "CookieLaunchout" layer
    3. Save and exit
    4. Reopen (is showing CookieLaunchout layer) and you'll see that it returned to normal, repeat step 1 (hide the current visible layer, which would be CookieLaunchout)
    5. Repeat Step 2 but with the "Mini Game Titans" layer
    6. Repeat Step 1 again (hide the Mini Game Titans layer)
    7. Repeat Step 2 (now we're back to CookieLaunchout layer again?) now the objects inside the layer are still pixelated

     

    Are you saying that all this hiding and switching layers is causing some kind of pixelation?

  9. #9
    brynn brynn @brynn
    *

    Oops, didn't mean to post yet.

    I made a screenshot of something that looks sort of pixelated.  But there are no raster images in the file.  I think it's just an anomaly because of the contrasting colors and the angles of the lines and curves, together with the relative size of the pieces.  So these small white pieces have a sort of pixelated look to them

     

    This isn't a bug though, because they have not been rasterized.  They are vector paths.  If the colors weren't so contrasting, for one, and the objects weren't so small for 2, and the angle of the lines weren't just perfect for this type of appearance, all of that together would not give such an obvious anomaly.

    But when I zoom or scale, that pixelated effect goes away.

  10. #10
    brynn brynn @brynn

    Here we go zoomed:

     

  11. #11
    Tetriser2018 Tetriser2018 @Tetriser2018

    Oh, so the combination of the color contrasts, relative sizes of the objects as well as the angles causing this?

  12. #12
    brynn brynn @brynn

    That's my thought.  At least I don't see a problem.  We have seen this before.

    You could do a little testing.  Maybe switch out colors that are less contrasting, try different angles or sizes.  I mean just to see what happens -- I don't mean to change your artwork.  Unless the pixelated look bothers you a lot.

    But someone else may have another idea about it.

  13. #13
    Maren Hachmann Maren Hachmann @Moini

    Fix it by removing

    style="shape-rendering:crispEdges"

    from the SVG file in a text editor (make sure to keep the closing > in that line, though).

  14. #14
    Tetriser2018 Tetriser2018 @Tetriser2018

    @Moini That works, thanks!

    But I wonder, why did that attribute appeared?

  15. #15
    brynn brynn @brynn

    Was that drawing made entirely in Inkscape?

    Hhmm, I don't see that in the XML Editor.  Which object is it on?