From: Alexandre Mateus
Subject: Lisp image manipulation
Date: 
Message-ID: <1064915428.934827@jubilee.esoterica.pt>
Hello,
I need to do some JPEG image manipulation, namely resize the images. 
Besides the manipulation, I need to access the file's metadata to 
extract the shooting date of the image.
Obviously, otherwise this post wouldn't be here, I need to do it in CL 
(ACL, CMUCL or Clisp).
Can anyone give me a hand or suggest a library for image manipulation in CL?

Thnx
@lex
----------
Alexandre Mateus
·········@sapo.pt

From: Edi Weitz
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <87k77qlhgl.fsf@bird.agharta.de>
On Tue, 30 Sep 2003 10:55:34 +0100, Alexandre Mateus <·········@sapo.pt> wrote:

> I need to do some JPEG image manipulation, namely resize the
> images. Besides the manipulation, I need to access the file's
> metadata to extract the shooting date of the image.  Obviously,
> otherwise this post wouldn't be here, I need to do it in CL (ACL,
> CMUCL or Clisp).  Can anyone give me a hand or suggest a library for
> image manipulation in CL?

You can call ImageMagick's command line tools with CMUCL's
EXTENSIONS:RUN-PROGRAM (or similar functions in AllegroCL and
CLISP). You'd use "convert" with the "-geometry" option to resize the
image and "identify" with the "-verbose" option to get at the file's
metadata.

You can also use (shameless self-plug) CL-GD's COPY-IMAGE function to
resize the image directly from Lisp but CL-GD won't help you to get at
the metadata.

Edi.

URLs: <http://www.imagemagick.org/>
      <http://weitz.de/cl-gd/>
From: Kenny Tilton
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <9rfeb.4327$q71.1650@twister.nyc.rr.com>
Edi Weitz wrote:
> On Tue, 30 Sep 2003 10:55:34 +0100, Alexandre Mateus <·········@sapo.pt> wrote:
> 
> 
>>I need to do some JPEG image manipulation, namely resize the
>>images. Besides the manipulation, I need to access the file's
>>metadata to extract the shooting date of the image.  Obviously,
>>otherwise this post wouldn't be here, I need to do it in CL (ACL,
>>CMUCL or Clisp).  Can anyone give me a hand or suggest a library for
>>image manipulation in CL?
> 
> 
> You can call ImageMagick's command line tools with CMUCL's
> EXTENSIONS:RUN-PROGRAM (or similar functions in AllegroCL and
> CLISP). You'd use "convert" with the "-geometry" option to resize the
> image and "identify" with the "-verbose" option to get at the file's
> metadata.

Has anyone done FFI work on ImageMagick? Looks like a fun tool. (what 
makes me think I just took on another project? <g>)

kenny
From: Marco Antoniotti
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <3F79CCD8.8000602@cs.nyu.edu>
Kenny Tilton wrote:
> 
> 
> Edi Weitz wrote:
> 
>> On Tue, 30 Sep 2003 10:55:34 +0100, Alexandre Mateus 
>> <·········@sapo.pt> wrote:
>>
>>
>>> I need to do some JPEG image manipulation, namely resize the
>>> images. Besides the manipulation, I need to access the file's
>>> metadata to extract the shooting date of the image.  Obviously,
>>> otherwise this post wouldn't be here, I need to do it in CL (ACL,
>>> CMUCL or Clisp).  Can anyone give me a hand or suggest a library for
>>> image manipulation in CL?
>>
>>
>>
>> You can call ImageMagick's command line tools with CMUCL's
>> EXTENSIONS:RUN-PROGRAM (or similar functions in AllegroCL and
>> CLISP). You'd use "convert" with the "-geometry" option to resize the
>> image and "identify" with the "-verbose" option to get at the file's
>> metadata.
> 
> 
> Has anyone done FFI work on ImageMagick? Looks like a fun tool. (what 
> makes me think I just took on another project? <g>)
> 

At a certain point I looked at it.  It seems like a good candidate for 
UFFIfication.  However I think I rememeber that the C API was not that 
well packaged (no prefixes).

Cheers
--
Marco
From: james anderson
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <3F797440.AFFD6F7F@setf.de>
if you want to do it with mcl there is code on the older release cds which
offers access to the respective macos image manipulation apis. 

Alexandre Mateus wrote:
> 
> Hello,
> I need to do some JPEG image manipulation, namely resize the images.
> Besides the manipulation, I need to access the file's metadata to
> extract the shooting date of the image.
> Obviously, otherwise this post wouldn't be here, I need to do it in CL
> (ACL, CMUCL or Clisp).
> Can anyone give me a hand or suggest a library for image manipulation in CL?
> 
> Thnx
> @lex
> ----------
> Alexandre Mateus
> ·········@sapo.pt
From: Arthur Lemmens
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <oprwbdgofdk6vmsw@news.xs4all.nl>
Alexandre Mateus wrote:

> I need to do some JPEG image manipulation, namely resize the images.

Christopher Vogt (http://www.franz.com/careers/resumes/cvogt.lhtml)
has written a Common Lisp JPEG library.

The copyright message says:

;;; This code is free for individual use.  You may not distribute this
;;; code or any derivite work, without prior written consent from author.  
If ;;; you want to use it in a commercial product, email to negotiate for 
;;; reasonable pricing.

Arthur Lemmens
From: Eugene Zaikonnikov
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <680a835d.0310010533.455bf950@posting.google.com>
Arthur Lemmens <········@xs4all.nl> wrote in message news:<················@news.xs4all.nl>...
> Alexandre Mateus wrote:
> 
> > I need to do some JPEG image manipulation, namely resize the images.
> 
> Christopher Vogt (http://www.franz.com/careers/resumes/cvogt.lhtml)
> has written a Common Lisp JPEG library.
> 
> The copyright message says:
> 
> ;;; This code is free for individual use.  You may not distribute this
> ;;; code or any derivite work, without prior written consent from author.  
> If ;;; you want to use it in a commercial product, email to negotiate for 
> ;;; reasonable pricing.
> 

Shameless plug: I also wrote a Common Lisp JPEG library, which is
distributed under the terms of BSD-style license. It can be found at
http://sf.net/projects/cljl. There's also a Debian/cclan package made
from it (courtesy of Kevin Rosenberg), named cl-jpeg.

Notice however that its functionality is limited to encoding and
decoding JPEG images, so there's no code provided for image resizing.

--
  Eugene
From: Kevin Layer
Subject: Re: Lisp image manipulation
Date: 
Message-ID: <mkisn6hr1e.fsf@*n*o*s*p*a*m*franz.com>
Alexandre Mateus <·········@sapo.pt> writes:

> Hello,
> I need to do some JPEG image manipulation, namely resize the
> images. Besides the manipulation, I need to access the file's metadata
> to extract the shooting date of the image.
> Obviously, otherwise this post wouldn't be here, I need to do it in CL
> (ACL, CMUCL or Clisp).
> Can anyone give me a hand or suggest a library for image manipulation in CL?

I wrote an EXIF extractor for some personal projects.  It's available
here:

   http://examples.franz.com/entries/layer-renpics-1.6.html

You want the file exif-utils/exifinfo.cl in the ZIP file.

Kevin