07-06-2023, 04:08 PM | #1 |
Connoisseur
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
|
can I pipe an image to eips ?
Hello,
I created a small script that loads an image from a local http server with curl Code:
curl http://localserver:8808/pic -o /var/tmp/pic.png Code:
eips -cfg /var/tmp/pic.png thanks |
07-06-2023, 04:55 PM | #2 |
BLAM!
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm not sure, but you can with FBInk (unless I dreamed about working on that part ;D).
EDIT: Did not dream that one up, yay. Code:
cat fb.png | fbink -cf -i - [FBInk] Detected a Kobo Aura H2O (370 => Dahlia @ Mark 5) [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 265 dpi [FBInk] Variable fb info: 1080x1440, 8bpp @ rotation: 1 (Clockwise, 90°) [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6684672 bytes & line length: 1088 bytes [FBInk] Canonical rotation: 0 (Upright, 0°) [FBInk] Enabled Kobo viewport insanity (1080x1440 -> 1080x1429), top-left corner is @ (0, 11) [FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8) [FBInk] Line length: 45 cols, Page size: 59 rows [FBInk] Horizontal fit is perfect! [FBInk] Vertical fit isn't perfect, shifting rows down by 7 pixels [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background Displaying image '-' @ column 0 + 0px, row 0 + 0px (scaling: 0x0, H align: 0, V align: 0, inverted: N, flattened: N, waveform: AUTO, HW dithering: PASSTHROUGH, SW dithered: N, nightmode: N, skip refresh: N) Last edited by NiLuJe; 07-06-2023 at 05:00 PM. |
Advert | |
|
07-08-2023, 11:09 AM | #3 |
Connoisseur
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
|
Aha! That nice. Thanks.
A question though: is there a significant performance overhead with fbink? In the script I am writing the screen needs to get updated every half second and I'd like to make it as efficient as possible. |
07-09-2023, 11:25 AM | #4 |
BLAM!
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
If anything, it's going to be *more* efficient than eips.
If you want to over-optimize the whole thing, don't write it in shell and use the API directly. |
07-10-2023, 11:08 AM | #5 |
Connoisseur
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
|
Hm. What Api are you referring to?
Currently I run a python script that does all the work and uses Pip to render all into an image which gets written to screen via a subprocess running eips. |
Advert | |
|
07-13-2023, 07:09 PM | #7 |
Connoisseur
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
|
Oh! Nice! Did not notice this so far and used fbink in a shell subprocess.
Will investigate! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble displaying image with eips | DDRBoxman | Kindle Developer's Corner | 19 | 08-13-2018 04:47 PM |
Am I missing something? (Image conversion for eips and others) | Richy_T | Kindle Developer's Corner | 4 | 08-06-2017 01:10 AM |
Strange eips behaviour | ikeabord | Kindle Developer's Corner | 9 | 06-10-2017 05:37 PM |
What is the code for eips ''? | dicalp | Kindle Developer's Corner | 5 | 06-03-2014 07:17 AM |
eips 5.1.0 | geekmaster | Kindle Developer's Corner | 30 | 11-24-2012 12:12 AM |