3 ms·
Meh. I tried to npm install and run it. Npm failed with a cryptic error message. I have a built docker image of this so in any case, I can eventually fix it. Wa
by eknkc 2y ago
Meh. I tried to npm install and run it. Npm failed with a cryptic error message. I have a built docker image of this so in any case, I can eventually fix it. Was not that important though.
But then again, why the fuck does that fail now?
I had a friend who was convinced that JPEGs would slowly degrade sitting on a disk. This was around 1990s so he would store important things in BMP so they would not degrade.
I think node_modules has something similar.
- deleted 2y ago[deleted]
- actionfromafar 2y agoYour friend was sort of not entirely wrong. A JPEG decoder can do many decisions on how to decode, while a BMP is just pixels. (So then it's "only" a matter of color spaces.)
- moron4hire 2y agoI haven't experienced this with JPEGs but wouldn't be surprised, as I have experienced it with MP3s. Newer decoders can't play some of my MP3s made with older encoders.
- actionfromafar 2y agoWell, a compliant JPEGs will still open in any reader, but can look slightly different. In a low-resolution image, it could change some fine detail you really cared about.
- stvltvs 2y agoAges ago I did some bit flip tests on different image encodings for a school project. It was interesting to see how a single flipped bit would propagate across the image in encodings that relied on similarity to nearby pixels for compression. Really the effect was limited to the frame, but the effects could be striking.
- eknkc 2y agoOk you are probably on to something I need to apologize for calling him a moron more than once on this. Come to think about this, we used a lot of different software and switched them as Windows would not open JPEGs by itself I believe.
- Scene_Cast2 2y agoThere's also bit flips. A JPEG can be more easily corrupted if some bits randomly flip.
- yjftsjthsd-h 2y agoAlso JPEG is lossy, BMP is lossless.
- needaname 2y agoThat's your fault for not using npm ci
- greenavocado 2y agoBit rot is real and has affected me multiple times. You need redundant storage like RAID to minimize the risk.