mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #292] Picture JSON Template #1273
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 @Draexl on GitHub (Apr 10, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/292
Originally assigned to: @nlimper on GitHub.
Hi, is it possible to add a picture in the json?
Maybe:
[
{ "text": [5, 5, "Bahnschrift 20", "fonts/bahnschrift20", 1] },
{ "box": [10, 30, 20, 20, 2] }
{"picture: [5, 5], "/logo_test.png"}
]
@nlimper commented on GitHub (Apr 10, 2024):
No.
But I leave this open, maybe somebody could add it at some point.
@olanwe commented on GitHub (Apr 21, 2024):
As a workaround you could use img2vlw to convert your image into a VLW font and use it to display the image.
@nlimper commented on GitHub (Dec 10, 2024):
Done! (in
30812dff49){ "image": [filename, x, y] }Places a JPG image (RGB, so no grayscale (can be tricky in some graphic software), baseline (non progressive)), located on the flash partition. The image cannot be scaled, so upload it the right size. It can be any size smaller than the tag, for example an icon. { "image": ["/testicon.jpg", 200, 50] } Tip: use an image with fixed design elements for the background, and fill in any other data using the json commands.