mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #48] Feature request: PNG upload #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonasniesner on GitHub (May 23, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/48
Originally assigned to: @nlimper on GitHub.
Expanding jpg2buffer to also work with PNG's would be great because jpg is not that great for compressing text and often creates unwanted artifacts
@nlimper commented on GitHub (May 23, 2023):
I will look into it. I think Larry made a lightweight png parse library. But having said that, if a jpeg has unwanted artifacts, it's mostly caused by bad generator software or bad settings. Even a moderately compressed jpeg containing text can be made without artifacts.
@seeers commented on GitHub (May 27, 2023):
i also have problems with jpg, i can't get a nice output without artifacts. ( Python Image / paint )
bmp or png would certainly be better
@atc1441 commented on GitHub (May 27, 2023):
As a quick fix you can save the images as monochrome bmp in paint and then save them again as jpg, the red will be gone but the image gets nice
@seeers commented on GitHub (May 27, 2023):
thank you, that works!
Now I just need to generate nice text jpgs from python
@nlimper commented on GitHub (May 27, 2023):
I'm not a python programmer, but I asked ChatGPT nicely. After some extra convincing about my intentions, it came up with this working example.
The tricks:
download: jpg_demo.zip
I will add the demo to the repo.

@seeers commented on GitHub (May 27, 2023):
Sure:
@nlimper commented on GitHub (May 27, 2023):
our messages crossed, but: see above.