Re: [ANN] File-to-image
"'Martin Eden' via lua-l" <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
On 2026-01-30 01:45, Olive Simmons wrote: > Writing usable deflate from within Lua is pretty easy, compression can > be skipped and you can just write uncompressed chunks. The RFC is > pretty confusing trying to work on a bit-stream but still have > endianness, here's an extract from a script of mine you can maybe adapt: > [...] > Hello Olive, I have no doubts I can do output in PNG format. But question is what program should do? That one-day project was about "how binary file looks if it's data are displayed as spiral?". So program just generates mapping from 1-d byte position to 2-d pixel position. I can't see result so stored that pixels as file in known text format. That P?M format is not widely supported, so I wrote script to call available CLI tool to convert it to PNG. PNG is mainstream now, even Internet browser can display it. What further happens with that PNG is not my code's business. Code's business is provide tweakable code for 1-d -> 2-d mapping. -- Martin -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/7b9f5caa-a958-4c56-b625-76e4038e9a4b%40disroot.org.