[solved] Inserting an image and changing the background colour

Post questions on how to use or achieve an effect in Inkscape.
Mountune
Posts: 6
Joined: Thu Sep 28, 2017 9:16 pm

[solved] Inserting an image and changing the background colour

Postby Mountune » Thu Sep 28, 2017 9:20 pm

Hello,

I am new to inkscape and I am trying to rework a vector image I had designed.

At present it has a Red square background of which I want to insert a snow effect image ontop of. How do I make the snow effect image background go transparent (so only the snow flakes will be left) or make the black background match the red I already have?

I have read a fair few topics I thought were similar but none seem to work.

Thanks

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inserting an image and changing the background colour

Postby tylerdurden » Thu Sep 28, 2017 10:24 pm

If you can an example svg file, that would help us examine the issue.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Inserting an image and changing the background colour

Postby Lazur » Thu Sep 28, 2017 10:31 pm

Hi.

Depends on what your objects are. If the snowflake is a raster image you can
  • use masking, where the masking object is a duplicant of your image
  • use filtering -the built in light eraser filter should suit the job (or a custom filter; I'd use that instead of checking what the built-in filters do by try and error)
  • similar option to the previous one, there are extensions that can manipulate the raster images themselves -"filter applied". Unlike filters, they change the source raster image and not just the rendering. Haven't checked if there is an extension (at extenison/raster) that would work though.
    With a raster editor you could do that more spot on.

If the snowflake is a vector object, there are probably better options.

Mountune
Posts: 6
Joined: Thu Sep 28, 2017 9:16 pm

Re: Inserting an image and changing the background colour

Postby Mountune » Thu Sep 28, 2017 10:49 pm

Hello all, thanks for the fast responses.

The snowflake design is a PNG file which has a black background.

What I want to do it put the Snowflakes from this image onto a Red background (Christmas type theme) so replace the black with red.

Sadly I'm unable to upload a .svg as I need this to remain quiet until I have managed to suss it out.


I am using Inkscape 0.92.2 (5c3e80d, 2017-08-06).

Lazur I will play round using the ideas you suggested to see if I can get them to work and post my findings.

Mountune
Posts: 6
Joined: Thu Sep 28, 2017 9:16 pm

Re: Inserting an image and changing the background colour

Postby Mountune » Thu Sep 28, 2017 10:57 pm

This is a copy of the PNG image I am trying to keep the snow effects from;

Image



and this is the shade of red I am after behind the snow effects (Replacing the black);
Image



Thanks

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Inserting an image and changing the background colour

Postby Lazur » Thu Sep 28, 2017 11:16 pm

The built-in duochrome filter (filter/color/duochrome) can do the job.

Check this file.

Mountune
Posts: 6
Joined: Thu Sep 28, 2017 9:16 pm

Re: Inserting an image and changing the background colour

Postby Mountune » Fri Sep 29, 2017 7:48 pm

Lazur, fantastic... thank you so much. this new method will be very useful :) thank you again


Return to “Help with using Inkscape”