Quantcast
Channel: MobileRead Forums - PocketBook
Viewing all articles
Browse latest Browse all 1245

Some new tools

$
0
0
Hi,

I've written a couple of command-line tools in rust that might be interesting. See pbtools for the source code. They are meant to run on your desktop, not your PocketBook.

The first rpbres is yet another implementation of the old pbres tools from various people. It is incomplete at the moment, but already a little more useful than other implementations because it tries to output the format of each resource.

The second res2image is kind of interesting. It can convert any 8pp bitmap resource into a BMP/PNG/TIFF file. This is pretty helpful, because it means you can see what various non-obvious named resources actually contain. I've used this to add BMP files into the e-reader's system/resources/Line subdirectory and add bits of colour into my UI! :cool:

Creating good BMP files that PocketBook likes is difficult. This page is a helpful start if you have Windows: http://cyfranek.booklikes.com/post/5...kow-pocketbook but I'm using ImageMagick command-line tools instead to convert my efforts. This is what worked for me:

$ convert -type Palette -compress None -colors 256 library.png desktop_app_library.bmp

Creating icons that look good will need some practice, as the Kaleido 3 panel can make them look quite washed out. Bold colours will probably work better.

If you're new to rust you'll need to use rustup to install the rust tools, and then just running cargo build from your clone of the pbtools git repo will get you the two tools.

Viewing all articles
Browse latest Browse all 1245

Trending Articles