News for hackers. Stuff that matters.
Re:DisplayMate by derefr on Monday June 22, 2026 @07:35PM (#48638019)
You can do that with JPEGs, just not the obvious way (i.e. by exporting the JPEG at the target resolution.)

Instead, you need to export the JPEG at a resampled resolution that's a multiple of your target resolution, such that each pre-transform source-image pixel gets mapped to its own entirely-independent JPEG color block.

Most obvious (though perhaps not optimal?) approach: nearest-neighbour upscale your image by 8x, and then save as JPEG with 100% quality (which will create 8x8 blocks with 4:4:4 subsampling.)

Re:DisplayMate by lelanthran on Tuesday June 23, 2026 @01:30PM (#48648356)
> You can do that with JPEGs, just not the obvious way (i.e. by exporting the JPEG at the target resolution.)

Yeah, I don't think GP did it that way.