Skip to content

Fedora: Image Manipulation Servlet

1 min read

During the 2nd semester of my junior year at Cornell University (circa April 2003), I worked on an independent study where I developed an image manipulation servlet to tie into Fedora, an “open source software [package that] gives organizations a flexible service-oriented architecture for managing and delivering their digital content.”

At the time of my project, Fedora was managing massive digital libraries for both the University of Virginia and Cornell University. Both universities were looking for a solution to better manipulate images and that is where my project comes in.

I wrote and developed a Java servlet to perform image manipulations on the fly, including resizing, cropping, zooming, brightness adjustments, watermarking, and converting from one format to another. All of these translations occured through HTTP GET requests. The benefit of this approach, was that only the original image needed to be stored in the database and any derivative of it could be generated on the fly.

Back then, storage wasn’t as abundant as it is today :-)

Below, you’ll find the servlet in two flavors: one with more generic, portable code, and the latter, relying on more comprehensive image libraries. With the changes in Java over the past few years, I expect the latter one to be just as portable as the former. Additionally, the readme and examples file should provide sufficent documentation for using the servlet. And for the curious, attached are the XML files for some basic integration into Fedora.

code

Related Posts

Members Public

The Future of Automotive Mobility will be Powered by Open Source Software

Automotive companies are shifting from bending metal to bending bits. Soon they will be offering software and services to complement their manufactured metal. In order to win in the market, they will need to embrace open-source software to build leverage and enhance their offering.

Members Public

How to Host Your Static Website on Amazon S3: Step-by-Step Guide

1. Login to your Amazon AWS account 2. Create a new hosted zone for your domain using Route 53 3. Copy the NS records for this zone to your domain provider (e.g., GoDaddy) 4. Edit your domain on your domain registrar (e.g., GoDaddy) by clicking Set Nameservers 5.

Members Public

Book Review: Drupal 7 Module Development

Well, it’s been a while my Drupal friends, almost 18 months… dusting off this old Drupal 6 blog and time to start posting again. And what better way to get started again than by talking about Drupal 7, by far the best release of Drupal. And with almost 7