Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Merge multiple BMP images into ICO files

by tonyc (Pilgrim)
on Mar 29, 2007 at 01:03 UTC ( #607127=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Merge multiple BMP images into ICO files
in thread Merge multiple BMP images into ICO files

The ICO.dll (or ICO.so, or ICO.bundle) is created during the build process. All of the code Imager requires to support ICO is part of Imager (most of the format support is in ICO/msicon.c).

The structure of images inside an ICO file is similar enough to BMP that you could probably write a simple script (or module) to do the conversion. One issue is that .ico doesn't allow compressed images, but you could test for that, since you need to parse the bmp header for the image size anyway.


Comment on Re^5: Merge multiple BMP images into ICO files
Re^6: Merge multiple BMP images into ICO files
by jimbojones (Friar) on Mar 30, 2007 at 00:14 UTC
    Hi

    I understand that the shared library is created from the XS code at build time. I was looking for a pure-Perl solution that could be distributed without having to build or install.

    I also tried, for a day or two, to write the script/module you describe. I got about 80% of the way, but really didn't have enough time at $job to persue it. I reverted to systeming out to a command-line image conversion. I may return to this problem in the future.

    Thanks for the reply.

    - j

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-09-16 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (158 votes), past polls