![]() |
#1 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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.
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. Last edited by frostschutz; 09-19-2016 at 03:54 AM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
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 |
![]() |
![]() |
![]() |
#5 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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 EDIT: Just tested it, works for me (H2O / dahlia) Last edited by frostschutz; 07-13-2015 at 12:54 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
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. |
![]() |
![]() |
![]() |
#7 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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... |
![]() |
![]() |
![]() |
#8 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 120
Karma: 1767614
Join Date: Feb 2014
Device: Kobo Touch
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#10 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#11 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
|
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#13 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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. |
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
|
Quote:
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 ![]() |
|
![]() |
![]() |
![]() |
#15 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
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...
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |