Wednesday, April 23, 2008

Ruby Png Gem - Getting Rid of Inline

Hmm, I know I grew up cutting teeth on C, but the "overhead" of getting
decent development environment, and "syncing" your compiler version
to that of who-ever wrote the code originally gets to be fun.

Its even worse when your going cross platform. (Yes I now prefer to
do my coding in ruby whenever possible).

I was reading thru ruby group on goole, about how to speed up the "png"
gem without using inline. I'm going to give that a try. Then I can use
the resolve in my pdftoruby tool.

Should be interesting, will update the article after I finish.

2 comments:

Anonymous said...

So, did you ever finish?

Willem said...

I have written a replacement gem for PNG, called ChunkyPNG. It is written in pure Ruby, and because of some heavy profiling, it is actually faster at writing PNG files than the original PNG gem with inlined C code. It is also able to read PNG files, read and write textual metadata and do alpha compositing. It helped me get rid of RMagick for my project. You should check it out!