Inkscape.org
Beginners' Questions Imported SVG image triggers unintended color changes
  1. #1
    marek.brezina marek.brezina @marek.brezina

    Hello,

    I have a document with several layers with some graphics and text. All objects in these layers are locked. see frontpage_1

    I have created a new layer for a logo. When I import the logo (svg) all looks fine. see frontpage_2

    Then I save the document, close the Inkscape, open the file again and the color of the objects in other layers is changed.

    see frontpage_3

    I had tried to lock the layer, lock each object in other layers. I have spent hours now trying and searching the solution but with no luck.

    Any idea what could cause this? How can I get rid of this color change?

    Thanks Marek

    Running Inkscape 1.0.2-2ย  on Win10. Installed today from the official msi installer, 64 bit version.

    ย 

    Frontpage 3
    Frontpage 2
    Frontpage 1
  2. #2
    Marco Riva Marco Riva @zerocinquanta

    If frontpage 3 is a png, you must set a background color (white, in this case). The canvas of Inkscape is white only in video.

    Try this to verify: load your frontpage 2 and go to edit/document preferences/page, and check "Checkerboard background". If the checker part covers the same grey area in frontpage 3, you have to add a white rectangle on tha backgroundย of your image.

  3. #3
    marek.brezina marek.brezina @marek.brezina

    Hi Marco,

    many thanks for your reply. I am not sure if I fully understand your ideas.

    The frontpage 3 is PNG only because I made a screenshot saved as PNG. My original file is saved as SVG and all imported logos are SVG too. In the end the file will be exported (savaย  copy) as PDF.

    I have checked the Checkerboard background and it covers entire screen including the area of a page behind the inserted logos. Which is probably correct as I have not created any white rectangle yet. Is it needed? Why?

    The problem is not only in the backgroud, but the main issu is that newly imported objects somehow influnce the color of other objects - eg the key shoul be gray ... not yellow.

    Meanwhile I have found a workaround for my issue. Instead of importing the logo I open the logo in new window and copy/paste the logo into my document. This does not influence the color of other objects.

    From my "newbie" point of view this behaviour seems to be a BUG, or very strange feature :-)

    ย 

  4. #4
    Marco Riva Marco Riva @zerocinquanta
    *

    Sorry, I missed the point.

    The imported SVGs usually keeps their own color map, generating a mess. Try to go to View/Color-managed View and activate it.

  5. #5
    Jonathan vonSeiten Jonathan vonSeiten @vonseiten

    Same issue here - seems to be a bug.

    The Frog to the right was green before importing the newts on the left.

    ย 

  6. #6
    Jonathan vonSeiten Jonathan vonSeiten @vonseiten
    *

    Link to image file:ย https://cdn.discordapp.com/attachments/873378467864010812/952264154343960657/unknown.png

    Bug reported here:ย https://gitlab.com/inkscape/inbox/-/issues/6605

  7. #7
    Tyler Durden Tyler Durden @TylerDurdenโš–

    @vonseiten, did you try the workaround described above in #3 ?

  8. #8
    Jonathan vonSeiten Jonathan vonSeiten @vonseiten
    ๐Ÿ‘*

    Yes, copy-pasting works in general but not always - Inkscape has another bug with copy-pasting, sometimes resulting in black pastes or other issues.

    Furthermore, strokes are not always copy-pasted correctly, so it is not always an applicable workaround.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Imported SVG image triggers unintended color changes