Click here to get back home

Image magick palette

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Image magick palette kkarma 07-30-2004
Posted by kkarma on July 30, 2004, 9:16 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
best way to store binary image data in a variable using image magick January 25, 2008, 1:17 am
ImageMagick: Writing image with 4 colors and palette November 3, 2008, 4:20 am
Image::Magick trouble February 11, 2005, 12:21 pm
Reduce colors with Image::Magick July 1, 2007, 8:41 am
Image::Magick problem after (failed?) install August 19, 2004, 5:16 pm
How can I use Image::Magick moduel on Windows system ? December 10, 2005, 3:38 pm
Image Magick - Exception 445: pixel cache not open November 18, 2004, 11:51 pm
Image::Magick and perl script STDOUT problem July 20, 2005, 10:05 am
Good documentation or good source examples for Image::Magick or converter from commandline to perl April 1, 2008, 5:23 pm
how to simply parse raw image data and output to an image file ? January 3, 2008, 11:19 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap