FORUMS
Remove All Ads from XDA

[release] nbimg: HTC splash screen tool

3,571 posts
Thanks Meter: 70
 
Post Reply Email Thread
nbimg is a command line tool which allows to convert HTC Splash Screen images from NB to BMP and create NB splash screens from BMP format. Any splash screen size is supported (yes, it works for Diamond or Athena at 640x480 resolution too).

Code:
=== nbimg v1.1
=== Convert NB <--> BMP splash screens
=== (c)2008 Pau Oliva - pof @ xda-developers

Usage: nbimg -F file.[nb|bmp]

Mandatory arguments:
   -F <filename>    Filename to convert.
                    If the extension is BMP it will be converted to NB.
                    If the extension is NB it will be converted to BMP.

Optional arguments:
   -w <width>       Image width in pixels. If not specified will be autodetected.
   -h <height>      Image height in pixels. If not specified will be autodetected.
   -t <pattern>     Manually specify the padding pattern (usually 0 or 255).
   -p <size>        Manually specify the padding size.
   -n               Do not add HTC splash signature to NB file.
   -s               Output smartphone format.

NBH arguments:      (only when converting from BMP to NBH)
   -D <model_id>    Generate NBH with specified Model ID (mandatory)
   -S <chunksize>   NBH SignMaxChunkSize (64 or 1024)
   -T <type>        NBH header type, this is typically 0x600 or 0x601
Example to convert a NB to BMP:
Code:
$ ./nbimg.exe -F diamond137.nb
=== nbimg v1.1
=== Convert NB <--> BMP splash screens
=== (c)2008 Pau Oliva - pof @ xda-developers

[] File: diamond137.nb
[] Image dimensions: 480x640
[] Encoding: diamond137.nb.bmp
[] Done!
Example to convert a BMP to NB:
Code:
$ ./nbimg.exe -F diamond137.bmp
=== nbimg v1.1
=== Convert NB <--> BMP splash screens
=== (c)2008 Pau Oliva - pof @ xda-developers

[] File: diamond137.bmp
[] Encoding: diamond137.bmp.nb
[] Image dimensions: 480x640
[] Done!
Download
Windows version attached to this post.
Linux version and source code available in my blog.
Attached Files
File Type: zip nbimg-1.0.zip - [Click for QR Code] (9.6 KB, 10590 views)
File Type: zip nbimg-1.1win32.zip - [Click for QR Code] (10.7 KB, 35977 views)
The Following 27 Users Say Thank You to pof For This Useful Post: [ View ] Gift pof Ad-Free
 
 
3rd July 2008, 10:07 AM |#2  
MarcLandis's Avatar
Senior Member
Flag Berlin
Thanks Meter: 738
 
More
This is awesome!

Thanks.
3rd July 2008, 12:56 PM |#3  
R3PUBL1K's Avatar
Senior Member
Flag ɒzəl.twɪzəl
Thanks Meter: 20
 
Donate to Me
More
nice one...
3rd July 2008, 01:07 PM |#4  
!Aman!'s Avatar
Retired Moderator
Flag Brampton
Thanks Meter: 13
 
Donate to Me
More
this is amzing tool
3rd July 2008, 01:21 PM |#5  
tom_codon's Avatar
Retired Moderator
Thanks Meter: 99
 
More
well done brother
3rd July 2008, 01:49 PM |#6  
pudgedaddy's Avatar
Retired Moderator
Flag Broken Arrow, OK
Thanks Meter: 5
 
More
OK so i took a .bmp file i created and converted it to .nb ... what exactly do i do next? can you only inject this file while a ROM is being cooked? or do i need to overwrite an existing file in the \windows directory?
I am using Kavana 6.1 ROM for the Excalibur BTW...
3rd July 2008, 02:03 PM |#7  
pof's Avatar
OP Retired Moderator
Barcelona
Thanks Meter: 70
 
Donate to Me
More
This has nothing to do with OS side. You need to create a NBH file for your device, with the NB splash screen inside, and flash it to replace the bootscreen.
The Following User Says Thank You to pof For This Useful Post: [ View ] Gift pof Ad-Free
3rd July 2008, 02:38 PM |#8  
pudgedaddy's Avatar
Retired Moderator
Flag Broken Arrow, OK
Thanks Meter: 5
 
More
so how to do "inject the .nb file int the .nbh file?
i have the original .nbh file and i've created the .nb file... what's the next step exactly?

and it's an .nbh unsigned file so its not locked down
3rd July 2008, 02:48 PM |#9  
pof's Avatar
OP Retired Moderator
Barcelona
Thanks Meter: 70
 
Donate to Me
More
Use any tool available to create NBHs, for example HTC Rom Tool. To flash your custom NBH file you'll need USPL or HardSPL installed on your device. Also for Excalibur specific instructions look here, because you'll need to add the smartphone signature manually.
3rd July 2008, 03:02 PM |#10  
pudgedaddy's Avatar
Retired Moderator
Flag Broken Arrow, OK
Thanks Meter: 5
 
More
i tried using the htc rom tool but when it loads, it fails to update the devices list. says internet connection probs... im on the net to its not my internet connection. oh well. guess i will wait a little longer..... im really a noob when it comes to this part of modding. All i want to do is to replace the first splash screen that comes up ( the HTC one ) and the second splash screen ( the windows mobile one) with the two i created.
3rd July 2008, 05:21 PM |#11  
pudgedaddy's Avatar
Retired Moderator
Flag Broken Arrow, OK
Thanks Meter: 5
 
More
ok i finally created an .nbh file from the .nb file i used to get the mainsplash.nb file. But when i do the flash all i get is a green gradient filled mainsplash screen and not the image that i converted. Was there something i did wrong? bear in mind i have the HTC Excalibur Smartphone

Basically since all i wanted to do was to flash the main splash screen i created a .txt file with this info:

EXCA10000
1111111
1.11.0.0
USA
600,02_MainSplash.nb

i made sure i named the created .nb file to "02_MainSplash.nb" and dropped it into the directory where the .txt file was located. I got the output .nbh file and compared it with my original .nb file and it was 1kb larger than the .nb.....

When i created the .nb file i used the code you posted on another thread and it looked like this: nbimg.exe -F MainSplash.bmp -w 320 -h 240 -n .... the name of the file was MainSplash.bmp any suggestions? i had heard you talk about adding the "this is smartphone signature" manually. Could this be the problem? If that's the case, i suck as hexediting, so maybe you can hexedit it 4 me?

also note that i got a flash wtire error too when running the RUU
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes