strredwolf: (ByPatches)
[personal profile] strredwolf
Okay, these image libraries suck:

Imagemagick (because it doesn't optimize PNG's right)
GD (because it has no "downgrade to 16 greys" functionality)

So I rewrite the comic compiler again... and find that Slackware's NetPBM utilities date back to 1998.  Okay, update that, and recheck the docs...

...and gut the recompiler.  90% of the pixel-pushing, including worrying about placement, NetPBM handles already.  I could rewrite it in bash.

ImageMagic origonal version:  142 lines of code.
GD version (PNG output): 116 lines of code.
ImageMagic PNG output: 87 lines of code

NetPBM version:  69 lines of code
"does nothing" base (for comparison): 49 lines.

I wonder what the bash version would be like.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

strredwolf: (Default)
STrRedWolf

May 2020

S M T W T F S
     12
3456789
10111213141516
1718 1920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 31st, 2026 08:03 pm
Powered by Dreamwidth Studios