[GH-ISSUE #292] Picture JSON Template #2932

Closed
opened 2026-03-20 22:05:53 +01:00 by sascha_hemi · 3 comments
Owner

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"}
]

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"} ]
sascha_hemi added the enhancement label 2026-03-20 22:05:53 +01:00
Author
Owner

@nlimper commented on GitHub (Apr 10, 2024):

No.
But I leave this open, maybe somebody could add it at some point.

<!-- gh-comment-id:2048177459 --> @nlimper commented on GitHub (Apr 10, 2024): No. But I leave this open, maybe somebody could add it at some point.
Author
Owner

@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.

<!-- gh-comment-id:2068071459 --> @olanwe commented on GitHub (Apr 21, 2024): As a workaround you could use [img2vlw](/olanwe/img2vlw) to convert your image into a VLW font and use it to display the image.
Author
Owner

@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.

<!-- gh-comment-id:2533055523 --> @nlimper commented on GitHub (Dec 10, 2024): Done! (in https://github.com/OpenEPaperLink/OpenEPaperLink/commit/30812dff49621fc0a39c7fba8fffef922bbe345b) `{ "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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2932