You want to "read the RGB pixel values from them and write these to a file"?
As was already pointed out, that is already what is in the file for some
graphics formats!  What is it you are actually trying to accomplish here?
Maybe you just want to use imagemagick on the command line to convert your
files to a single format?

In any case, image magick (as also previously mentioned) is the way to go.
Using the perl library (http://www.imagemagick.org/www/perl.html) you just
have to open the image (the library figures out what format it is
automagickally), get width and height, then loop through calling pixel and
writing the results.

----- Original Message -----
From: "Chris Egan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 11:58 AM
Subject: Reading RGB Values of Pixels in Images


>
> Hi,
>
> I'm very new to Perl and have a question that I haven't been able to
> find an answer to. I want to be able to read an image file (BMP, PNG,
> JPEG, etc...) or a series if image files and read the RGB pixel values
> from them and write these to a file.
>
> I have looked at various image libraries for Perl and around on the
> Internet but I have not been able to find a method of doing what I want
> to do. I'd like to make the program as platform and image independent as
> possible, hence me trying it in Perl.
>
> Could any point me in the right direction or provide a few hints?
>
> Thanks,
>
> Chris.
>
> --
> Chris Egan
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to