You are here: Los Angeles Technology S.F. Technology Examiner

Jason Brooks

S.F. Technology Examiner
Jason Brooks is executive editor of eWEEK Labs, and has been testing and writing about technology since 1999. He is a big fan of Linux and open source, and has personally witnessed Bill Gates tearing it up on a Comdex dance floor.

  

Examiner Feeds

These websites were picked by the S.F. Technology Examiner as useful resources.

Tech News Sites

On My Computer

San Francisco Examiners

Linda Post
S.F. Political Events Examiner
Most Recent Post
Updated Events - Assemblyman Tom Ammiano!
Chad Jones
S.F. Theater Examiner
Most Recent Post
GrooveLily members tell a `Long Story Short'
Dino-Ray Ramos
S.F. Fashion Examiner
Most Recent Post
Tim Gunn and Macy's 'Make it work!'
 
 

(i.e. Los Angeles hiking, Los Angeles parenting)

Erase your friends for fun and profit

August 5, 3:51 PM
by Jason Brooks, S.F. Technology Examiner
 
 
About a year ago, at SIGGRAPH 2007, researchers Shai Avidan and Ariel Shamir presented a paper on content-aware image resizing--a method for resizing (and removing objects from) images without distorting them too much.

In a nutshell, the software identifies low-information seams within an image, and cuts out (or multiplies) those seams in order to decrease or increase the image's size without changing too drastically the meat of the image.

Avidan and Shamir produced an explanatory video on the technique, which I've embedded below. If you haven't yet seen this video, I recommend you check it out.

After I saw this video, I wished that my image editing program of choice, the Gimp, could be made to perform this trick. Fortunately, it wasn't long before a content-aware resizing plugin for the Gimp appeared, complete with support for identifying parts of an image to discard.

The plugin, called Liquid Rescale, is easy (and free) to acquire, and it's pretty straightforward to use, as well. Here's how to do it.

Step One: Bring out the Gimp

GIMP, which stands for GNU Image Manipulation Program, is an open source application that's similar in function to Photoshop. I use the Gimp for all of my image manipulation needs.

  • If you're a Windows user, you can get the Gimp here.
  • If you're a Linux user, your computer probably came preinstalled with the Gimp.
  • If you're a Mac user, you can get the Gimp from a couple of different places, but if you're going to use the Liquid Rescale plugin, you'll have to follow the not-for-beginners directions here.
     

 Step Two: Get the Plugin

  • For Windows users, the plugin lives here.
  • For Linux users, the plugin is available here. I use Ubuntu 8.04, and I installed the plugin packages that had been built for the previous Ubuntu version, and they worked fine. Liquid Rescale is actually available straight from Ubuntu's software repositories, but in an older, slower version, so stick with packages l've cited here.
  • For Mac users, follow the instructions in the link above. (again, sadly, they involve some software compilation--not the end of the world, but by no means noob-friendly.
     

 Step Three: Use the Plugin

  • Fire up the Gimp, and open an image you'd like to manipulate. I'm looking to erase this friendly-looking dog from the waters of Ocean Beach.
  • Next, open the Liquid Rescale plugin dialog at "Layer," "Liquid Rescale."
  • In the section of the dialog labeled "Feature discard mask," hit the "New" button. This will create a new layer to define the part of your image you'd like to do away with.
  • Use the Gimp's pencil tool to color the part of the image you wish to discard red. I've found that drawing a border around the part of the image, and then using the paint can tool to fill it in works pretty well.
  • Back at the Liquid rescale dialog, hit the "Refresh" button to refresh your layer, and then click the "Autosize" button to have the software reduce the image enough to erase the bit you're cutting out.
  • Next, hit "OK" and let the plugin work its magic.
     

I've found that the Liquid Rescale plugin usually works fairly well, but results vary from image to image. In this beach image example, the lines of surf on either side of the dog I've cut out don't quite match up, and there's a visible seam where the dog had been. I found that a bit of judicious smudging helped matters. Also, I've found that in order to completely excise certain parts of an image, I've had to fiddle with the "Strength" slider.

 

For more info: Want to work this magic with Photoshop? I found this link courtesy of Google. I haven't tried it, so if you do, let me know how it goes.

Topics: gimp , graphics
   Subscribe   Feed
 
 

Comments

Name:  
Email Address:  
Comments:  

More from S.F. Technology Examiner

Apple update promises to untether the iPhone

November 12, 12:36 PM
Rumor has it that next week, Apple will release its 2.2 upgrade for the iPhone and iPod Touch. If the reported feature enhancements for 2.2 are correct, the update may be enough to get me and my jailbroken iPod Touch back on the straight and narrow.... Read More
Topics: mobile

Will Obama be an open source president?

November 5, 2:46 PM
Last night during CNN's election coverage, after it was clear that Obama would become the country's 44th president, pundit Alex Castellanos wondered aloud whether the government under Barack Obama would take on some of the grass roots flavor that marked... Read More
Topics: open source , Elections 2008

Welcoming Windows 7

October 28, 4:41 PM
Today, at its Professional Developer's Conference in Los Angeles, Microsoft offered the world its first glimpse at Windows 7--the soon-to-come client OS charged with making up for widely-panned Vista, and giving Windows users everywhere a reason to... Read More
Topics: windows

Treat yourself to a suite alternative: OpenOffice.org 3.0

October 12, 1:30 PM
OpenOffice.org 3.0 is a great suite of office productivity applications (word processor, spreadsheet, presentation & database) that's very similar to Microsoft Office in function, and very different in price. Where pricing for Microsoft Office... Read More
Topics: open source , office

RIM queues up its iPhone killer: the Blackberry Storm

October 9, 2:55 PM
Research in Motion, the maker of the popular line of Blackberry smart phones, just announced its answer to Apple's iPhone: the Blackberry Storm.The Storm does away with the tiny, chiclet-style keyboard for other Blackberry devices are famous, and devotes... Read More
Topics: mobile

Barack Obama tackles the iPhone

October 2, 10:30 AM
Today, the Obama campaign unleashed on Apple iPhone users a slick-looking application for keeping its partisans up-to-date and plugged-in to the election effort. The application, which is available for Apple's iPhone and iPod Touch devices through the... Read More
Topics: mobile , Elections 2008

San Francisco's Best Hotspot Networks

October 1, 12:23 AM
Ubiquitous Internet access is the technophile's lifeblood--we need our email, our social networking status(es), and our handy Examiner.com headlines close at hand wherever we roam.For my money, the most attractive means of tapping the Internet across... Read More
Topics: wifi

What's so great about free software?

September 20, 11:16 AM
It may not be marked on your calendar, but today is Software Freedom Day 2008: "Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS). Our goal in this celebration is to educate the worldwide public about... Read More
Topics: open source

Free the Net rolls on, in the Tenderloin

September 16, 4:52 PM
  This morning, wireless mesh networking company Meraki Inc. held a press conference alongside San Francisco Mayor Gavin Newsom to announce an expansion of the firm's free WiFi network into a dozen affordable housing complexes in the Tenderloin.... Read More
Topics: wifi , internet