Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl BMP -- Text

by knobunc (Pilgrim)
on Jun 06, 2001 at 19:35 UTC ( #86272=note: print w/ replies, xml ) Need Help??


in reply to Perl BMP -- Text

There is an ASCII-Art mode in The Gimp, but that does more than you want (it can handle greyscale and color).

Image::Magick has a perl interface so you can get the image information (width and height) then loop through the pixels.

www.wotsit.org has links to the different file formats. There are a couple of BMP formats depending on the windows version, or it may be an X bitmap, you were not very clear there. Once you know the format you can get the dimensions and then play games with pack and unpack.

If this is an infrequent thing and you don't care about extreme speed then I would go the Image::Magick route.

-ben


Comment on Re: Perl BMP -- Text

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-09-17 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (54 votes), past polls