Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2015, 09:23 AM   #1
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Nickel Icons

This script extracts PNG/MNG icons from nickel (and possibly other binaries). It runs on disconnect from PC (currently without visual feedback). The extraction process takes about a minute.

You can edit and replace the PNGs with your own images, as long as they are not larger than the original image was. For some images it can be difficult to meet the size requirement: Reduce color depth. Try pngcrush/pngquant. Disable optional PNG data (comments, etc.). If nothing helps, reduce colors even further / remove details.

The custom images will be written directly back into the binary. The script does check for valid PNG header and filesize, but even so, bricking is still possible - make backups of your data.

To install, KoboRoot-NickelIcons.tgz » .kobo/KoboRoot.tgz

After installation you will find a .addons/nickelicons directory.
  • .addons/nickelicons/uninstall.txt - uninstallation instructions
  • .addons/nickelicons/report.txt - logfile of the last script run
  • .addons/nickelicons/targets.txt - list of files to be processed by this mod (nickel)
  • .addons/nickelicons/nickel/*.png - the extracted PNG images (leave as is)
  • .addons/nickelicons/nickel/restore/*.png - put your edited PNG images in here (to be restored on disconnect)
  • .addons/nickelicons/nickel/done/*.png - your edited PNG images (previously processed by the script - check report.txt for success)
  • .addons/nickelicons/nickel/invalid/* - broken or invalid files found during processing

The script will not run if nickel/*.png exists (if it already extracted PNG before) and if nickel/restore/*.png does not exist (if there is no custom PNG to put back into the binary). So to start over you must remove .addons/nickelicons/nickel/*.png.

A reboot is necessary to make the changes visible.

In order to uninstall the Nickel Icons mod, simply delete or rename the .addons/nickelicons dir.

Uninstalling will not restore the original icons. You have to do so manually, before uninstalling, by moving the original PNG files into restore/. Alternatively, use a firmware update to get the original /usr/local/Kobo/nickel file back.
Attached Thumbnails
Click image for larger version

Name:	charge.jpg
Views:	1749
Size:	116.1 KB
ID:	140240   Click image for larger version

Name:	connected.jpg
Views:	1425
Size:	64.7 KB
ID:	140241  
Attached Files
File Type: zip KoboRoot-NickelIcons-20160918.zip (2.5 KB, 647 views)

Last edited by frostschutz; 09-19-2016 at 03:54 AM.
frostschutz is offline   Reply With Quote
Old 07-13-2015, 09:50 AM   #2
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Perhaps, the animator images could be made modifiable with something like this?

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Advert
Old 07-13-2015, 09:54 AM   #3
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
You mean the progress bar at startup? Those are different. Not PNG embedded in nickel but raw, gz-compressed files in /etc/images/*. This mod is more about icons (such as home / wifi / battery / menu) and other image data used by nickel.

You could use it on binaries, as long as they use PNG the same way... if you fancy a customized chess set or something... go nuts

Last edited by frostschutz; 07-13-2015 at 09:58 AM.
frostschutz is offline   Reply With Quote
Old 07-13-2015, 11:59 AM   #4
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Does anyone know a way to convert these .raw files into something usable? It seems like the screenshot process went through a raw to pam step, if I remember correctly.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 07-13-2015, 12:08 PM   #5
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Kind of off topic, but ... :P

You can convert the raw files to png with an ffmpeg command that can be found in this forum somewhere. My pngcat program used to do PNG -> RAW conversions. You can find it somewhere in the history of my GitHub (google frostschutz github kobo pngcat). If you use pngshow (part of my ScreenSaver mod) something like this might work:

Code:
# rotate screen for pickel
cat /dev/zero | /usr/local/Kobo/pickel showpic
# whiteout
tr '\x00' '\xff' < /dev/zero > /dev/fb0
# actually display an image
/usr/local/ScreenSaver/pngshow something.png
# gzip raw framebuffer data into a file
gzip < /dev/fb0 > something.raw.gz
Haven't actually tested it. For the progress bar you need 11 images (/etc/image/product-on- 1 .. 11), more if you want to cover other products than just your own reader.

EDIT: Just tested it, works for me (H2O / dahlia)

Last edited by frostschutz; 07-13-2015 at 12:54 PM.
frostschutz is offline   Reply With Quote
Advert
Old 07-13-2015, 01:45 PM   #6
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
123456

Last edited by Ken Maltby; 07-13-2015 at 01:52 PM.
Ken Maltby is offline   Reply With Quote
Old 07-15-2015, 09:53 AM   #7
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Updated it, apart from bugfixes it now also grabs MNG (animated PNG).
Nickel uses them for the rotating sync or loading icons...
frostschutz is offline   Reply With Quote
Old 07-15-2015, 07:09 PM   #8
Alastair_S
Zealot
Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.
 
Posts: 114
Karma: 1425448
Join Date: Feb 2014
Device: Kobo Touch
Quote:
Originally Posted by Ken Maltby View Post
Does anyone know a way to convert these .raw files into something usable? It seems like the screenshot process went through a raw to pam step, if I remember correctly.

Luck;
Ken
Ken,
what OS do you use? For MS Windows there is a great freeware program called IrfanView that can read the raw files (you need to supply the dimensions of the image, which will probably be the same as the screen size of the Kobo device you are using) and save them as something else.
Alastair_S is offline   Reply With Quote
Old 07-16-2015, 03:32 AM   #9
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Ken Maltby View Post
Does anyone know a way to convert these .raw files into something usable? It seems like the screenshot process went through a raw to pam step, if I remember correctly.

Luck;
Ken
See this post.
tshering is offline   Reply With Quote
Old 07-16-2015, 01:58 PM   #10
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
I think it's not a very useful application, but it's very funny!.

The difficulty has been to find the images of my model of reader (there are many peers) and even more difficult to make an image smaller.

These are my new images. The files that I changed in my aura H2o with firmware v.3.16.0 are 4163626_5614.png and 4082981_10978.png

Thanks frostschutz
Attached Thumbnails
Click image for larger version

Name:	IMG_20150716_194028_HDR.jpg
Views:	823
Size:	127.2 KB
ID:	140316   Click image for larger version

Name:	IMG_20150716_192024_HDR.jpg
Views:	837
Size:	214.7 KB
ID:	140317  
surquizu is offline   Reply With Quote
Old 07-16-2015, 03:35 PM   #11
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by surquizu View Post
I think it's not a very useful application, but it's very funny!.
Glad you like it
frostschutz is offline   Reply With Quote
Old 08-06-2015, 02:42 PM   #12
barobach_so
Connoisseur
barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.
 
Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
hi
I have problem with this patch

when i transfer koboroot.tgz and disconect device after restart i found .nickelicon directory with three txt file

I made "nickel" folder in it and a "restore" folder in nickel folder, manually
I paste 2 PNG file in it ( didnt change name ) and after another restart there was no change in icons

patch made 2 other folders ( done and invalid ) and some png files with 0 KB size in nickel folder
what was my mistake ?
can u pls tell me the exact instruction ?

Last edited by barobach_so; 08-07-2015 at 04:42 AM.
barobach_so is offline   Reply With Quote
Old 08-06-2015, 03:09 PM   #13
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
The extraction/patching process happens when you disconnect the device from USB connection (and you should give it some time to do so, like a minute or three). You have to reboot to make changes visible. Don't create folders manually, or the mod might think it already extracted/imported images and won't do anything.

It should say what it did or didn't do in the text files in the .nickelicons folder.

Last edited by frostschutz; 08-06-2015 at 03:12 PM.
frostschutz is offline   Reply With Quote
Old 08-07-2015, 12:46 PM   #14
barobach_so
Connoisseur
barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.
 
Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
Quote:
Originally Posted by frostschutz View Post
The extraction/patching process happens when you disconnect the device from USB connection (and you should give it some time to do so, like a minute or three). You have to reboot to make changes visible. Don't create folders manually, or the mod might think it already extracted/imported images and won't do anything.

It should say what it did or didn't do in the text files in the .nickelicons folder.
hi
thank you

now it works fine

there are a lot of same pictures ( for example a kobo connected to a pc pic ) with different names

do you know which one should be replaced

my h2o on fw 3.15 has 967 pic and its difficult to check one by one
barobach_so is offline   Reply With Quote
Old 08-07-2015, 12:57 PM   #15
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Sometimes you have the same picture but at differnet resolutions, so one of them is used by Kobo Glo, another by Kobo H2O, etc. The filenames might change with every firmware update too [they're byte offsets in the nickel file], so - it involves a bit of trial & error. There is no way to determine what's what automatically...
frostschutz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't restart nickel myki Kobo Developer's Corner 16 03-27-2015 05:42 PM
Aura Nickel does not start valris Kobo Developer's Corner 4 11-21-2014 02:59 AM
nickel replacement sven Kobo Developer's Corner 25 01-15-2013 05:43 PM
Eink stanalone demo Qt eink driver for standalone qt apps ie no nickel nickel tonyv Kobo Developer's Corner 2 12-27-2012 09:35 AM
Touch Someone’s started a Nickel replacement... Spheres Kobo Developer's Corner 9 08-04-2012 12:13 AM


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


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