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:
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