Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Concatenating Images with Perl

by redhotpenguin (Deacon)
on Dec 13, 2007 at 06:23 UTC ( [id://656758]=note: print w/replies, xml ) Need Help??


in reply to Concatenating Images with Perl

Image::Magick can do what you need. I had to solve a problem where a spammer was sending an image chopped up into equal pieces, each piece attached to the email as an attachment. He used html and inline css to piece the fragments together to display the composite image in the email. I called him 'Mr. Puzzle'.

I was able to use Image::Magick to put the pieces back together, then another library to OCR the resulting image and run the text through a spam checker. Granted, the API for Image::Magick can be frustrating, but it is pretty fast. Keep at it, you'll get it.

Replies are listed 'Best First'.
Re^2: Concatenating Images with Perl
by halley (Prior) on Dec 17, 2007 at 19:29 UTC
    Er, wouldn't this have been easier?
    $cells = scalar s{(</td>)}{$1}g; $spam += COMPLICATED_TABLE if $cells > 4;

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found