in reply to converting Jpeg to grayscale

You can use convert from the Imagemagick package. Like this: convert -colorspace gray input.jpg output.jpg.

Or use the Image::Magick module if you can get it to compile.

Joost.

-- #!/usr/bin/perl -w use strict;$;= ";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs ";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;

Replies are listed 'Best First'.
Re: Re: converting Jpeg to grayscale
by Willard B. Trophy (Hermit) on Jul 22, 2003 at 15:06 UTC
    Or faster, smaller and better at keeping metadata together than ImageMagick: IJG's jpegtran. This has the advantage of preserving the luminance channel exactly, whereas IM is likely to decompress, greyscale, then recompress the image.

    --
    bowling trophy thieves, die!