Mobile app version of vmapp.org
Login or Join
BetL875

: Gimp: removing background from product images I often have the task of making the background of product images pure white. While preserving the best possible image quality, what is the quickest

@BetL875

Posted in: #BackgroundRemoval #Gimp #Photography

I often have the task of making the background of product images pure white.

While preserving the best possible image quality, what is the quickest way to adjust colors such that the background becomes pure white (AKA each corner is 255,255,255)?

For example given this image:



If I fiddle with levels I can make it into:

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL875

2 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

Here are the steps I took:


Duplicate the base layer and select the copy.

Apply an edge detect filter (Filters -> Edge-Detect -> Edge...)
using these settings:

My goal here is to get clear contrast between my object and my background. I found Sobel worked the best and simply fiddled until I got this result.
Threshold the colors (Colors -> Threshold...) with the goal of solidifying the color of the background as much as possible.

Tidy up the background with the Brush Tool a bit to get it solid black:

Use the Magic Wand with slightly feathered edges (~5px) to select the outer black area.

Select your original layer, and turn off the copy layer.

Hit the delete key to delete your selection region from the layer, and you're done.


Here's the final result:


This took a minimal amount of extra work, and has the benefit of preserving the full quality of your original image. The whole process could be done in 10-15 minutes if you have an image with a good contrasting background.

10% popularity Vote Up Vote Down


 

@Cofer715

I used this technique with your sample :
Duplicating the layer and in this same layer :


Desaturating colours according to "Luminosity".
Bightness-Contrast tool : Brightness -74 & Contrast 127.
Coping the layer and applying it as a Layer Mask to this current layer.
Applying the "Hard Light" to the layer mode and adjusting opacity if needed.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme