Skip to content
drotiro edited this page Aug 23, 2010 · 11 revisions

PostPic: A PostgreSQL extension for image-processing

PostPic is an extension for the open source PostgreSQL dbms that enables image processing inside the database, like PostGIS does for spatial data.
It adds the new ‘image’ type to the SQL, and several functions to process images and to extract their attributes.

Eg.

select * from my_images where date(the_img) > '2009-01-01'::date and width(the_img) > 1600;

Traditional relational clauses can be combined in queries with image-related ones, and basic image processing can be performed in SQL.

The Quickstart page explains how to setup PostPic in your PostgreSQL database.
The SQL Functions Guide shows how to operate on images.

Contents of the source package

The source package contains the following:

  • server: sources for the server extension
  • utils: utilities for client-side loading of images, etc.
  • jdbc: mapping for the new type, enhances the postgresql jdbc driver
  • doc: instruction for building the sources and other documentation
  • examples: example programs and sql scripts

Copyright and license

PostPic is Copyright © 2010 Domenico Rotiroti.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.
A copy of the GNU Lesser General Public License is included in the
source distribution of this software.
Clone this wiki locally