Resizing images contained in oid fields

From: juanmime(at)ono(dot)com
To: pgsql-admin(at)postgresql(dot)org
Subject: Resizing images contained in oid fields
Date: 2005-03-21 16:12:52
Message-ID: 422CFD5E0000A55E@resmta04.ono.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

I have a table where an oid field is used for saving images. I'm thinking
about getting a little snapshot of all images without downloading the full
images. I only want to download some entire images. I'm thinking in something
like this:

create table images (
id serial primary key,
title varchar not null,
photo_id oid
);

select title, snapshot(photo_oid, 120, 120) as snap from images

In this case, the snapshot function returns the resized snapshot of the original
image.

I think that the core of function could be similar to this:
1) Obtain the image
2) Resize the Image to new size
3) Return the Resized Image

Do you know if there exists a function like this ("snapshot")?
Otherwise, What is the type returned by the function ? What suitable procedure
language should I use ? What image library for the redimension ?

Thanks you very much.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bryan Encina 2005-03-21 16:54:17 Re: Migration from 7.1.3. to 7.4.7.
Previous Message Scott Marlowe 2005-03-21 15:53:48 Re: Migration from 7.1.3. to 7.4.7.