Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,198 Members 40,613 Now Online
XDA Developers Android and Mobile Development Forum

[release] nbimg: HTC splash screen tool

Tip us?
 
roboprint
Old
(Last edited by roboprint; 28th August 2011 at 10:36 AM.)
#101  
roboprint's Avatar
Senior Member
Thanks Meter 397
Posts: 703
Join Date: Jan 2011
Location: warsaw
Hi,
I have small problem with command in nbimg.
I type
nbimg.exe -w 480 -h 800 -F splash1.bmp | rename .bmp to .img
and file splash1.bmp.nb is created but not changing a name to img.
What can be wrong?
Edit: Solved
Can be :
nbimg.exe -w 480 -h 800 -F splash1.bmp
rename *.bmp.nb splash1.img

Phone: HTC Desire HD
ROM: Android Revolution HD 6.3.3 by Mike 1986
Kernel:RCMIX3D V12.2 CALL RECORD
Radio: 12.65.60.29_26.14.04.28_M ( exe version)
Mods: BlueHD for ARHD 6.3.x (includes beats audio) v3.9,


Thanks received are appreciated

 
RuLEoF2
Old
(Last edited by RuLEoF2; 27th April 2012 at 01:39 PM.)
#102  
RuLEoF2's Avatar
Member
Thanks Meter 6
Posts: 69
Join Date: Sep 2010
Location: Baltimore, MD
Can someone help me out?

I used this tool for my Incredible at least a couple dozen times and never had a problem. The string that worked for that was... "nbimg.exe -F splash1.bmp -w 480 -h 800". Worked every time.

Now, I'm trying to make some screens for my rezound and I keep getting the error below.



Thanks.
 
bgcngm
Old
#103  
bgcngm's Avatar
Recognized Developer
Thanks Meter 3324
Posts: 3,324
Join Date: Apr 2007
Location: Lisbon

 
DONATE TO ME
The image that you have attached is broken.
Latest custom ROMs: ZTE V987 (MT6589) / ZTE V970 (MT6577)

If you like my work, please feel free to donate...

 
RuLEoF2
Old
#104  
RuLEoF2's Avatar
Member
Thanks Meter 6
Posts: 69
Join Date: Sep 2010
Location: Baltimore, MD
Sorry, try this.
 
vladnosferatu
Old
#105  
vladnosferatu's Avatar
Senior Member
Thanks Meter 1698
Posts: 3,593
Join Date: Feb 2011
Location: Leiria

 
DONATE TO ME
i did make a nb splash file for sensation its 540x960.

now i'm trying to make for one x 720 x 1280.
but the nbimg crashes

any ideas ?



could be the bmp format ?
Quote:

dev | Sam i9505
rcv | CWM Touch
krn | kt-sgs4 4
rom | AOSPA3.99
btr | 2600 mAh
----------------
2dv | LG Nexus4
rcv | CWM Touch
krn | Franco191
rom | AOSPA3.99
----------------
lch | ADW EX
adw | i2 [1804 icons]

old :
Ericsson GH688 / Nokia 6150, 6210, 7610, N70, E71 / HTC Desire, Desire HD, Sensation, One X / Samsung Galaxy Nexus , S3

 
lt1pnyklr
Old
#106  
Senior Member
Thanks Meter 8
Posts: 249
Join Date: Aug 2009
Location: Greenville, SC
Can someone please explain how you use this nbimg script? Is it used from a pc or the phone? If the phone where do you put the file, root of sdcard? Then run terminal with the proper commands to convert? If you use cmd on a pc are you placing this file in your platform-tools directory? I don't get it.
HTC Sensation
Whatever rom works...
 
eclyptos
Old
#107  
eclyptos's Avatar
Senior Member
Thanks Meter 612
Posts: 2,990
Join Date: Jun 2008
Location: Planet Earth
GUYS, it's seems your don't know how works nbimg v1.1.

I try to explain because who use nbimg v1.1 don't know there is no way to go back if for curiosity someone try the second splash screen of the application.

Nobody write a warning about that.

I did 20 custom splash screen, like I like, and I do them today if I want. So I convert any .jpg file into .png 24 bit and i flash it. Ok, no problem.

BUT, with nbimg v1.1 you can chose to do 2 different splash screen 1st and 2nd, EVERYBODY think 2nd is AFTER R.G.D, is not.

Before that anybody on boot have only 1 splash screen, but if you do with nbimg v1.1 the second splash screen the first ORIGINAL splash screen will be SPLIT into 2 splash screen, AND AFTER THIS IS NO WAY BACK.

One beautiful day I try the second splash screen and now I got this crap.

Which problem I have now?

I can flash any stock/custom ROM from entire world via SDcard or pc but the second splash screen when show up the R.G.D don't go away.

I DON'T WANT MALGRD just to replace the picture.

Currently many application for change the splash screen work on phones which has never been flashed with nbimg v1.1.

Who did second splash screen with nbimg v1.1 have this problem.

Now I want have full sequence of this boot http://forum.xda-developers.com/showthread.php?t=625911 but it not replace the second bloody splash screen.

This is the problem.

To the OWNER of this application, PLEASE, remove the option of the 2nd splash screen because that option make many victims!

So people, DO NOT EVER TRY THE SECOND SPLASH SCREEN WITH nbimg v1.1.
 
charlietron
Old
#108  
charlietron's Avatar
Member
Thanks Meter 0
Posts: 52
Join Date: Mar 2008
Location: Barcelona
Gràcies pof! Jo encara vaig amb el meu HTC HD2 amb WinMo6.5 i això m'ha anat de perles!
 
dmonium
Old
#109  
dmonium's Avatar
Senior Member
Thanks Meter 145
Posts: 208
Join Date: Dec 2007
Location: Ambato

 
DONATE TO ME
Default nbimg.exe has stopped working

hi I'm trying to convert in BMP the orginal splah of HTC ONE but i get this error message

nbimg.exe has stopped working

this is the command

D:\Desktop>nbimg.exe -F splash1.nb -w 1080 -h 1920
=== nbimg v1.1
=== Convert NB <--> BMP splash screens
=== (c)2008 Pau Oliva - pof @ xda-developers

[] File: splash1.nb
[] Image dimensions: 1080x1920

D:\Desktop>

Could you help me with this?
thanks
ζΦ®d Đα®k ĐmΦηiμm.ςΦm

HTC One - 801s 64GB Black
ROM = MaximusHD 42.0.0 with Lyapota's modPack and more features DEVELOPED by myself
Base: 6.06.401.1
Android: 4.4.3
Sense: 6



HTC One X STOCK DEODEX Base 4.19.707.3
----DISCONTINUED
HTC Wildfire S EQDKP 5.0 Sense 3.5 - GB2.3.5 & Dmonium ONE RING LockScreen
HTC Wildfire DK Custom Froyo V4.7
HTC Touch HD Energy™ 6.5 & Dmonium Windows 7 Theme
HTC Touch P3450
 
Modding.MyMind
Old
(Last edited by Modding.MyMind; 17th July 2014 at 06:56 AM.)
#110  
Modding.MyMind's Avatar
Senior Member
Thanks Meter 1266
Posts: 1,451
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
Using this script along with busybox, bm, and GraphicsMagick; I am able to take a bunch of images then place them all in to a folder on my device to later run the below script and ultimately converting all my images to splash1 after properly resizing them. In order to successfully accomplish this I needed to compile nbimg for android as well as GraphicsMagick. bm is a multi call binary I put together which holds nbimg, mkbootimg, mkbootfs, and unmkbootimg. However, calling bm nbimg is all that is needed given the purpose of this thread. The binaries are statically compiled.

To use this is simple; just download the zip in the attachment and unzip it. Place gm and bm to /system/bin on your device. Give them their permissions (755 or 777). Make a folder on your phone and place all your original pictures there. Set the path to your pictures within the actual script. Then set the width and height in which you want the final image to be. Once done, just run the script and wait until it is finished.

When it is complete, go to your folder and you will have your picture along with your splash image. Choose the one you like and rename the image to, splash1.img.

Enjoy

PHP Code:
#!/system/bin/sh

##############################

# This script requires Busybox,
# bm/nbimg, and GraphicsMagick

##############################

# SPLASH IMAGE CONVERTER
# Written by Modding.MyMind - XDA

##############################

# Set your path here
IMAGE="/sdcard/Converter"

# Set your width and height here
WIDTH=480
HEIGHT
=800

##############################

# Find the images to be converted to splash
clearfind $IMAGE -type f -iname "*.*" | while read line; do
# Remember the directory and filename to each image
local FILE="$(basename "$line")"
local FILEDIR="$(dirname "$line")"
gm convert $FILEDIR/$FILE -resize $WIDTH'x'$HEIGHT'!' $FILEDIR/$FILE
gm convert $FILEDIR
/$FILE $FILEDIR/$FILE'.bmp'
echo " "
bm nbimg -F $FILEDIR/$FILE'.bmp' -w $WIDTH -h $HEIGHT
FILE_NAME
=`echo $FILE | cut -d. -f1 `
busybox mv -f $FILEDIR/$FILE'.bmp.nb' $FILEDIR/$FILE_NAME'.img'
rm -f $FILEDIR/$FILE'.bmp'
rm -f $FILEDIR/$FILE'.bmp.nb';
done 
Attached Files
File Type: zip bm_gm.zip - [Click for QR Code] (1.28 MB, 2 views)

The Following 3 Users Say Thank You to Modding.MyMind For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes