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

  • RawTherapee

    RAW format images offer more options for editing than JPEG formats – RawTherapee brings this potential to Linux.

  • 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.

  • Album Shaper

    Digicams almost completely replaced legacy cameras, and now Album Shaper offers a replacement for photo albums.

  • Xnview

    Xnview is a handy image viewing and editing tool that is free for private use. We’ll show you around some of the program’s best features.

  • Scanning with XSane

    The Sane interface provides access to image processing devices such as scanners. You can manage your Sane-supported scanner from Linux with the handy XSane front-end.

comments powered by Disqus

Issue 18: Free From XP/Special Editions

Buy this issue as a PDF

Digital Issue: Price $15.99
(incl. VAT)

News