this post was submitted on 08 Oct 2024
129 points (97.8% liked)
Open Source
31761 readers
158 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For painting from the command line, I use sed to replace data at given offsets
It requires decoding the jpeg in my head to get the said offsets, but the pragmatism is unbeatable.
lmao, what?
You do the decomposition in your head to get the raw image, replace pixels, and then recompose the jpeg, taking note of the diff. That diff is what you then swap into the original with sed.