Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2024, 05:48 AM   #1
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Some new tools

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!

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.
chrisridd is offline   Reply With Quote
Old 06-16-2024, 08:43 AM   #2
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
I've uploaded some binaries for Macs, Linux and Windows. I cross-compiled the last two platforms so have not tested them.

https://github.com/chrisridd/pbtools/releases
chrisridd is offline   Reply With Quote
Old 06-17-2024, 08:20 AM   #3
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
I traced the existing PB icons and just filled things in maximum red/green/blue (and a grey in the Apps icon) just for fun.

IMO it is definitely looking a bit nicer than the boring black/white icons.

Click image for larger version

Name:	IMG_7190.jpg
Views:	294
Size:	1.15 MB
ID:	208943
chrisridd is offline   Reply With Quote
Old 06-21-2024, 06:01 PM   #4
orontee
Connoisseur
orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.orontee composes epic poetry in binary.
 
orontee's Avatar
 
Posts: 75
Karma: 90864
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
Possible work on color icons

Nice work!

Not directly related but, in case you want to experiment with color icons, you may give a try to this issue of Taranis: Improve look on color screen.
orontee is offline   Reply With Quote
Old 06-29-2024, 08:13 PM   #5
certciv
Member
certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.certciv actually enjoys Vogon poetry.
 
Posts: 11
Karma: 56298
Join Date: Jun 2024
Location: Los Angeles, CA United States
Device: PocketBook Era Color
Quote:
Originally Posted by chrisridd View Post
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!
I'm a little unclear on how this works. My Pocketbook Era does no seem to have a system/resources directory. Is this a case of newer models working a little differently?
certciv is offline   Reply With Quote
Old 06-30-2024, 11:56 AM   #6
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by certciv View Post
I'm a little unclear on how this works. My Pocketbook Era does no seem to have a system/resources directory. Is this a case of newer models working a little differently?
That's a good question. When I got my InkPad Color 3 I grabbed a complete snapshot of all the initial files; it also had no system/resources directory.

There will definitely be a system directory, so just create the subdirectory "resources" yourself, and then another subdirectory inside that called "Line", which matches the active theme shipped by PB.
chrisridd is offline   Reply With Quote
Old 07-16-2024, 05:26 PM   #7
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
I've just released 0.3.0 for Mac, Linux and Windows. It adds support for 24bpp images - the "klondike" cards are 24bpp - and an image2res tool that converts back to the resource image format.
chrisridd is offline   Reply With Quote
Old 07-16-2024, 11:58 PM   #8
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,812
Karma: 11482613
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by chrisridd View Post
I've just released 0.3.0 for Mac, Linux and Windows. It adds support for 24bpp images - the "klondike" cards are 24bpp - and an image2res tool that converts back to the resource image format.
Nice. I'll be playing with this ASAP.
neil_swann80 is offline   Reply With Quote
Old 09-23-2024, 10:42 PM   #9
GreyFox
Militaires Sans Frontière
GreyFox began at the beginning.
 
GreyFox's Avatar
 
Posts: 22
Karma: 32
Join Date: May 2024
Device: PocketBook Era Color
Quote:
Originally Posted by chrisridd View Post
I traced the existing PB icons and just filled things in maximum red/green/blue (and a grey in the Apps icon) just for fun.

IMO it is definitely looking a bit nicer than the boring black/white icons.

Attachment 208943
Can you share the icons and your view.json?
GreyFox is offline   Reply With Quote
Old 10-01-2024, 04:52 AM   #10
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Sure. I think I did these right before I went on holiday and didn't carry on when I got home, so there aren't many. I'd love to see better versions!

I did create a wiki page listing which filenames you need to override which app.

Bonus: some colour Lock Screen (sleep) images, which I just grabbed from the Internet and then filled the background in
Code:
#808040
which tells PB this should be transparent.
Attached Files
File Type: zip app-icons.zip (7.6 KB, 46 views)
File Type: zip lockscreen.zip (198.1 KB, 51 views)
chrisridd is offline   Reply With Quote
Old 10-01-2024, 07:45 PM   #11
GreyFox
Militaires Sans Frontière
GreyFox began at the beginning.
 
GreyFox's Avatar
 
Posts: 22
Karma: 32
Join Date: May 2024
Device: PocketBook Era Color
Quote:
Originally Posted by chrisridd View Post
Sure. I think I did these right before I went on holiday and didn't carry on when I got home, so there aren't many. I'd love to see better versions!

I did create a wiki page listing which filenames you need to override which app.

Bonus: some colour Lock Screen (sleep) images, which I just grabbed from the Internet and then filled the background in
Code:
#808040
which tells PB this should be transparent.
Awesome, thanks so much. Someone else made some color icons too and now with yours everything has a nice splash of color.
GreyFox is offline   Reply With Quote
Old 10-02-2024, 12:02 PM   #12
dmalinovsky
Connoisseur
dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.dmalinovsky ought to be getting tired of karma fortunes by now.
 
Posts: 69
Karma: 388296
Join Date: Aug 2022
Location: USA
Device: Pocketbook Inkpad Color 3
Quote:
Originally Posted by chrisridd View Post
Bonus: some colour Lock Screen (sleep) images, which I just grabbed from the Internet and then filled the background in
Code:
#808040
which tells PB this should be transparent.
Thank you very much, my son is the big fan of these comics, it was a nice surprise for him.
dmalinovsky is offline   Reply With Quote
Old 10-08-2024, 11:45 PM   #13
totasenior
Member
totasenior began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2017
Location: Veszprém, Hungary
Device: PB Inkpad 3 pro; PB Touch HD 3; Pocketbook Color
I would like to ask if the icons listed on the wiki page exist, or are they just in the zip file, or did someone mention that someone else made some, where are they located?
totasenior is offline   Reply With Quote
Old 10-09-2024, 03:14 AM   #14
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by dmalinovsky View Post
Thank you very much, my son is the big fan of these comics, it was a nice surprise for him.
Thanks, I think they're perfect to show the device is sleeping!
chrisridd is offline   Reply With Quote
Old 11-22-2024, 04:38 PM   #15
ZackMuc
Junior Member
ZackMuc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2020
Device: Kindle Oasis
Does anyone know if there are already some colored versions of the other icons exist?
ZackMuc is offline   Reply With Quote
Reply

Tags
github, themes


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Engineering Tools and Debugging Techniques: Guide to Build Software Tools amazon author Self-Promotions by Authors and Publishers 2 04-07-2015 05:02 AM
Tools CRussel General Discussions 39 01-21-2013 05:00 PM
Tools Polyphemus General Discussions 5 12-26-2012 09:48 AM
xz tools for a 3 twobob Kindle Developer's Corner 10 08-22-2012 04:17 PM


All times are GMT -4. The time now is 03:03 PM.


MobileRead.com is a privately owned, operated and funded community.