View Single Post
Old 05-25-2022, 09:04 PM   #1
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 65
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
NickelMenu script for fixing Pocket images

As you may know, the current Pocket implementation in Kobo readers struggles with images other than JPEG. JPEGs will be displayed fine, but all other image types, like PNG, SVG or GIF simply won't be displayed.

As I grew tired of seeing the "image not found" icon - too many articles using png files and the like - I wrote a small script for NickelMenu to convert these images to JPEG on the fly.

Add a line like this one to your NickelMenu config:

Code:
menu_item  :library  :Fix Pocket Images  :cmd_spawn  :quiet:/bin/sh /mnt/onboard/.adds/pocket/fix.sh
  chain_success  :dbg_toast  :Done
Then extract pocket.zip to /mnt/onboard/.adds/pocket.

The script currently supports the following formats: GIF, PNG, SVG, WEBP.

Ps. You might need to reboot your Kobo if the article already was cached.

Changelog:

2022-05-28:
  • Initial release

2022-06-08:
  • Add ImageMagick timeout flags
  • Only move files if ImageMagick was successful
  • Added toast message to NickelMenu config

2022-06-08:
  • Switch to ImageMagick 7
  • Add support for GIF, SVG, WEBP
  • Add support for SVG with embedded text using a default font

Attached Files
File Type: zip pocket-20220526.zip (3.85 MB, 649 views)
File Type: zip pocket-20220608.zip (3.85 MB, 727 views)
File Type: zip pocket-20220706.zip (3.19 MB, 841 views)

Last edited by qkqw; 07-06-2022 at 05:11 PM.
qkqw is offline   Reply With Quote