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
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/>
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
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
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
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
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
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