Seamstress: Intelligent Image Scaling

Oct 08, 2007

The Seamstress image manipulation library promises smaller images without compromising detail. Version 1.0.0 of the software, which was released recently, uses an "energy function" to analyze various areas of the image before compressing and does not change eye-catching areas.

Content-aware image scaling is how the inventors Ariel Shamir (Interdisciplinary Center Herzliya) and Shai Avidan (Mitsubishi Electric Research Laboratories) refer to their method, which only modifies the "boring" parts of a graphic. The GPL'd Seamstress C library implements the approach shown in the figure: when the original image (top) is resized, the marbles simply move closer together without changing shape (bottom left). The version bottom right shows a conventionally scaled version that clearly demonstrates the differences.

Compressed: Seamstress simply compresses the free areas between the marbles (bottom left). In contrast to a simple width rescale (bottom right) the marbles keep their shape.

Besides the library, the Sourceforge project includes the GTK application Arachne, which demonstrates the functionality of Seamstress without requiring programming skills on the part of the user. The application modifies Tiff images dynamically to reflect the window size. Besides automatic analysis of the screen area by the software, users can manually select objects they do not wish to scale. As the screenshots show, you can even remove undesirable elements from images without compromising the realistic character of the image.

(Peter Kreußel)

Related content

  • Web Design with GIMP

    Good homepage design is a question of the layout. Sometimes the best option is to use a graphics program to design the page, then translate the result into HTML code. The versatile image manipulation program GIMP can help.

  • Customized GRUB and KDE Boot

    Power users can adjust the look of their desktops in openSUSE with just a few clicks. We'll show you how to customize the GRUB boot menu, the boot splash screen, and the KDE start screen.

  • Converseen

    If you have an extensive collection of photos, you will hardly want to edit each photo individually. Converseen lets you rotate, scale, and convert a large number of images in a single run.

  • Darktable 1.6

    Hardly anything affects the quality of photos more than play of light and shadow, or the brilliance of colors. Darktable fixes incorrect exposure, conceals unfavorable lighting conditions, and ensures harmonious colors.

  • Xara LX

    Vector graphics often look much like comics: although you can hint at shading and highlights, it is more or less impossible to achieve photorealism. But this could all change now that Xara LX has been released as an open source program.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News