6 Replies - 808 Views - Last Post: 26 March 2018 - 08:31 AM

#1 O'Niel   User is offline

  • D.I.C Regular

Reputation: 15
  • View blog
  • Posts: 472
  • Joined: 13-September 15

Correct way of making image transparent (in GIMP)

Posted 24 March 2018 - 06:50 AM

Hi

I got an image in JPEG-format with a white background.
But I wanted the image to have a transparent background so
in Gimp used the fuzzy selector to make the background transparent.

But however, that gives a very dirty result.
https://imgur.com/a/t1aKJ

The image's background got transparent however you still see
some white dots and parts around the edges of the image.

I tried setting a higher threshold for the Fuzzy selector, but that was ugly as well.
I tried vectorizing, but also that didn't make it any better.

What's the correct way of making a white background transparent in GIMP?
Or another free tool to do it?

Original image:
https://imgur.com/a/m8SB2

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Correct way of making image transparent (in GIMP)

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 15361
  • View blog
  • Posts: 61,605
  • Joined: 12-June 08

Re: Correct way of making image transparent (in GIMP)

Posted 24 March 2018 - 08:27 AM

It's not a quality image. To fix it you'll need to clean it up by hand.
Was This Post Helpful? 0
  • +
  • -

#3 O'Niel   User is offline

  • D.I.C Regular

Reputation: 15
  • View blog
  • Posts: 472
  • Joined: 13-September 15

Re: Correct way of making image transparent (in GIMP)

Posted 24 March 2018 - 11:36 AM

Auch that's painful to hear. Luckily for me the client told me today he preferred a white background instead of a black one.
So I think I'm lucky. ;-)
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 15361
  • View blog
  • Posts: 61,605
  • Joined: 12-June 08

Re: Correct way of making image transparent (in GIMP)

Posted 24 March 2018 - 11:37 AM

No kidd'n. Too many times I had received low res images and tried that fight. Ugh.
Was This Post Helpful? 0
  • +
  • -

#5 Radius Nightly   User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 321
  • Joined: 07-May 15

Re: Correct way of making image transparent (in GIMP)

Posted 25 March 2018 - 02:06 AM

View Postmodi123_1, on 24 March 2018 - 04:27 PM, said:

It's not a quality image. To fix it you'll need to clean it up by hand.

If you dont care about colors, their shades and if there is no transparent shades, you can convert it to monochrome or index it into several colors (such as black and white or eg. 5 colors), it will make cleaning faster and more precise. Later on you can apply colors you want.
Was This Post Helpful? 0
  • +
  • -

#6 Radius Nightly   User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 321
  • Joined: 07-May 15

Re: Correct way of making image transparent (in GIMP)

Posted 25 March 2018 - 02:21 AM

This is example, converted into 3 colors, black, white and red:
Posted Image

So most of the picture become clean, and the rest of it become easy to rebuild.
Posted Image

After rebuilding with this 3 colors (you match colors what best suit current picture), you can replace white with transparency and color it as a child coloring book with some shades or so.

This works fine for logos and simple pictures only. It still requires work, but way less then original (2nd picture).

Edit:
If you wanna keep current color as is, you can save the original one, and later on you clean image, against transparency cut/select it and apply its original color as layer (wont be applied at transparent background if you select it right), its like less then a minute, however because of original quality, that layer for colors would need little fixes or filters to expand over the bad quality inner and edges without filling transparency, to fill logo with real good and clean colors.

IDK where you wanna use this logo, because its very small. Its better to make your own logo in RAW high resolution (easy for this logo, so you can use it on most things that will fit resolution) or with vector graphic (so you can use it everywhere on any resolution with max. quality all the time).

View PostO, on 24 March 2018 - 07:36 PM, said:

preferred a white background instead of a black one

Invert colors, auto selection, fill... vs. you.

This post has been edited by Radius Nightly: 25 March 2018 - 02:37 AM

Was This Post Helpful? 0
  • +
  • -

#7 ge∅   User is offline

  • D.I.C Lover

Reputation: 195
  • View blog
  • Posts: 1,194
  • Joined: 21-November 13

Re: Correct way of making image transparent (in GIMP)

Posted 26 March 2018 - 08:31 AM

You need to be a little bit creative when dealing with low quality images.

What you should have done is use a circular selection tools to cut the image out. Then, as radius said, you can turn some part in negative so they look OK on a black background.

I would advise against reducing the colour pallet. There is an obvious loss of data, the antialiasing is gone and there is no way you can get it back.

Instead, notice that you have a high contrast between your subject and the background, you can create a layer mask out of it. When it is done, if you want to invest time in it, you now have the ability to paint over and restore the image while preserving its contour. It will give you a cleaner look than reducing the colour pallet. Another quick tip is to use a selective blur, which blurs out contiguous pixels with similar colours: it can help remove JPEG artefacts while not affecting sharp edges too much and is way faster than making a mask and painting over.

This was done in 3 minutes time. Circle selection tool, invert, layer mask, quick paint over, voilà.
Posted Image

Oh and I wanted to add that there is n reason to use free images when you sell something. You can get cool images like this for cheap. Respect other people's work and beware the copyright. This image may not be a piece of art, but it took time to create.

This post has been edited by ge∅: 26 March 2018 - 08:39 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1