r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.
  • rss
  • Home
  • About
  • Email

How To: Seamlessly Remove Things from an Image in GIMP

r3dux | June 19, 2010

Photoshop CS5 has a content-aware fill filter which will try to seamlessly remove objects from an image – and that’s great. But GIMP has the same functionality, right now – for free. And it’s a doddle to use…

I posted about a cleverly designed glass which spells out what you’re drinking through linking dots on the glass with the liquid colour the other day, but to get that image, I needed to do a little bit of manipulation first. For this example we’re going to be using GIMP with the Resynthesizer plugin (package name: gimp-resynthesizer):

1.) Get an Image to Work With

I wanted to use a picture of the glasses, but the bar across the top was too close to them for it to be a nice shot with enough white-space around it, so the first thing I did was just stab the Print-Screen key to get a screengrab:

GIMP-Remove-Items-1

Remember that to fill in the missing details, you need as much as possible of what should be there – that is, a very high background to selection ratio! If you have a picture of someone’s face taking up a large section of the image and you try to remove the face – where can the plug-in get data from to know what to replace it with? It can’t! So it’ll make a guess, and it’ll fail badly. On the other hand, if you have a large swathe of grass with a football on it, and you’re removing the football, the plug-in has all the surrounding image to consider when doing the replacement!

In this case, I kept as much of the background as possible in the image while I was replacing the section I wanted removed so the plug-in could use that data for replacing content.

2.) Select the Section to Remove

Because the bar is rectangular in shape, the rectangular selection tool was the easiest option to select it – if you’ve got a more ragged section then use the lassoo selection tool, or a quick-mask or whatever to get your selection; just make sure it’s pretty tight to what you want to remove…

GIMP-Remove-Items-2

3.) Run the Resynthesizer Plugin

Once you’ve got your selection (i.e. what you want to remove selected), just pick Filters | Map | Resynthesizer from the GIMP menu and use the checkboxes as ticked below:

GIMP-Remove-Items-3

GIMP-Remove-Items-4

4.) Admire Your Handiwork

The Resynthesizer plugin is a little bit curious, in that running it, then undoing it, then running it again will produce different results. The first two times I ran it on the exact same selection on the exact same image ended up with some artifacts of text being dragged in, but the third time did the entire thing cleanly.

If you end up with stray artifacts from other parts of the image, you can either re-run the resynthesizing process, or just select the artifacts and re-run resynthesizer on them to remove them (remembering to keep the selections tight to what you want removed).

And voila…

GIMP-Remove-Items-5

That’s pretty awesome… Kudos to Paul Harrison for the plug-in – that’s some killer code – what a guy! =D

Comments
1 Comment »
Categories
How-To, Imagery
Tags
GIMP, plug-in, Plugin, Remove, resynthesizer, Seamless

Comments rss Comments rss
Trackback Trackback

How To: Use Hotmail through Thunderbird without the WebMail Plugin

r3dux | September 28, 2009

The WebMail plugin has been a trusty, appreciated boon to everyone wanting to get their hotmail/yahoo/gmail through a proper email client for years.

But due to the way providers re-jig their login mechanisms now and then, it just breaks. And breaks. Then breaks again. Not a bad word to the plugin authors – there’s nothing they can do about it, and it’s the prerogative of the email provider to setup their login and authentication mechanisms however they damn well see fit. But FFS – it’s email, you know? Can it just work, and stay working?

Following on from gmail offering POP and SMTP access for the last year or two, Hotmail now offers its own POP and SMTP servers – which means the WebMail plugin is no longer needed for Thunderbird, or personally by any webmail I use.

To modify your accounts in Thunderbird / Eudora etc – just set your hotmail accounts to the following details and you’re all set:

* Type: POP
* Server Name: pop3.live.com
* User Name: Your FULL email address
* Port: 995 (this should be automatically set when you select SSL)
* Use secure connection: SSL
* Use secure authentication: leave unchecked

If you want to use their SMTP server select “Outgoing Server (SMTP)” and press the Add button.

* Server Name: smtp.live.com
* Port: 587 (you could also use port 25 if your ISP doesn’t block it)
* Use name and password: Check it
* Username: Your FULL email address
* Use secure connection: TLS

Comments
No Comments »
Categories
How-To
Tags
Email, Hotmail, Live, Plugin, POP, SMTP, Thunderbird, Webmail

Comments rss Comments rss
Trackback Trackback

Translate

Categories

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009

Post Calendar

July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Tags

10.04 360 ActionScript ActionScript 3.0 Adobe Ballarat Bash Compiz Controller CS4 CUFDIG302A Effect Film Fire Flash Gaming Hack How-To install Jaunty Josh Joplin Group Linkage Linux Little Big Planet Motion mount Music NAS Particle photography Photoshop Problem PS3 r3dux.org Retro Slides Softmod Sound Systems Ubuntu Video VirtualBox Wii Windows XBox

Linkage

  • 9GAG
  • A Day in the Life of Jim
  • Truxnor.net

Gamercard

Prepare for Awesome

Misc.

Creative Commons License

stopsoftwarepatents.eu petition banner

“A man who procrastinates in his choosing will inevitably have his choice made for him by circumstance.”

 - Hunter S. Thompson

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox