- Forum
- LG Android Phones
- More LG Phones
- LG Optimus Series
- Virgin Mobile Optimus V
- Optimus V Rooting, ROMs, and Hacks
Make/extract RLE files in Windows, the easy way (now with Linux)
- Here is the easiest method I have found so far to make boot logo rle files. This is SIMPLE and fast!
Note: I did not create this, this is the work of DooMLoRD on XDA. I only simplified it. Original thread is here.
Requirements:
Windows and this file .
Note, systems that shipped with Windows 7 with SP1 pre-installed may not work for some reason.
For Linux, see post 13
Install:
Extract the zip file someplace, I recommend something short because you will have to type the location. I use my D drive and a folder named RLE. So D:\RLE is the location I put these files.
How to create an rle file:
Step 1
Make the image you want to use. It MUST be 320x480 pixels (for the Optimus V).
Step 2
Save the file as a PNG file to the directory you extracted the tool (in my case D:\RLE). I also save the file as a psd so I can later edit it further in a folder specifically for storing this stuff.
Step 3
Go to your start menu and find Command Prompt. This will be in (All) Programs/Accessories.
Step 4
Go to the folder you put the tool, in my case D:\RLE
Step 5
Run the tool, you need to know the name of the png file, again, in my case this is logo.png. Run the tool with the command:
convert_image_to_rle.bat logo.png
You should be left with the raw file, a png file and an rle file, all named logo.
Step 6
Rename the rle file to initlogo.rle and place the file into your build, on CM builds this is:
android/system/device/lge/thunderc/files
How to extract an RLE
Step 1
Copy the initlogo.rle file to your RLE folder, in my case D:\RLE
Step 2
Go to your start menu and find Command Prompt. This will be in (All) Programs/Accessories.
Step 3
Go to the folder you put the tool and rle file, in my case D:\RLE
Step 4
Run the tool with the command:
convert_rle_to_image.bat initlogo.rle
You should be left with a raw and a png file.
Edit: Added new info, corrected some.08-24-2011 07:30 PMLike 7 -
-
- JerryScriptDaydream BelieverThanks!
Now to figure out how to make them animated. I was actually shocked by the explosion that turns into the Sprint logo when I tried out the OS Gingerbread update. Very cool!09-16-2011 07:14 AMLike 0 -
-
-
*edit* I've also used RGB2565 to make the files. If your sizing is right it will work too.
Sent from my IHO LG OP V using Tapatalk09-18-2011 09:45 PMLike 0 -
Maybe Photoshop 3 is different, but I suspect it has to do with the differences between RLE file types.10-14-2011 09:15 PMLike 0 - anthonycrThemer. You've seen themIll try this, looks like it should work. If you want to get rid of the virgin mobile logo when it boots up, make your own .rle images and replace the ones found in /system/bootimages/ just make sure that you name the files the same as the ones you replace or they wont play on startup. You will have to use teminal emulator probably to get the images from your sd to the bootimages file10-15-2011 06:52 AMLike 0
-
- bigsupersquido_OI don't like windoze, but if I remember my msdos right,
Code:convert_rle_to_image.bat C:\Users\Anthony\Desktop\sprint_power_on_00.rle
the instructions say to move the file you want to convert to the directory with the batch file, though, so there's a chance it won't parse the long path.10-15-2011 09:18 AMLike 0 -
convert_rle_to_image.bat sprint_power_on_00.rle
If they are a different folder you will need to have command prompt in the directory of the program and use something like:
convert_rle_to_image.bat C:\Users\Anthony\Desktop\sprint_power_on_00.rle10-15-2011 03:06 PMLike 0 - JerryScriptDaydream BelieverI finally figured out how to use Gimp together with ImageMagick and to565 to create RLEs in Ubuntu.
Gimp
-- Start with a PNG image
-- Under the Image tab, set the mode to indexed at 16 colors. If it's already set to indexed, set it to RGB, then set it back to indexed at 16 colors.
-- In the Layers window, first merge all layers together (can be tricky), then right-click and select remove alpha channel (this may mess up your image, transparency isn't allowed though)
-- Save as a PNG file, and uncheck all boxes in the PNG dialog, leaving compression at 9.
ImageMagick
-- Use the Convert function to change the PNG to a RAW format:
Code:convert -depth 8 MY_IMAGE.png rgb:MY_IMAGE.raw
-- Convert the RAW image to RLE format:
Code:rgb2565 -rle < MY_IMAGE.raw > MY_IMAGE.rle
Code:mmm build/tools/rgb2565
(be sure you have set the bin path per building instructions for Android).
Now we can use either Windows7 (pre service pack 1) or Ubuntu (or any Linux distro) to create our own first bootanimations! I can make shell scripts to make it easier similar to LeslieAnn's Windows batch files if people need it.01-11-2012 06:33 AMLike 4 - I corrected the first post and title, and added some info.
Changes:
Added reference to Jerry's post regarding Linux.
Added a bout systems that shipped with Windows 7 with SP1 pre-installed not always working.
Also,
For some reason I said you needed RAW files, you actually need PNG. I'm not sure why I had it that way except maybe it worked that way before but does not now.JerryScript likes this.01-11-2012 04:44 PMLike 1 - JerryScriptDaydream BelieverHere's a shell script that will batch convert a series of PNG images (saved in the proper format) to RLE format, and name the appropriately for use in the first bootanimation. It can be easily modified to do the same for the battery charger images.
Place the images together with a copy of rgb2565 and this shell script's sh file in the same folder, I would recommend making a folder just for this purpose. Name the images in numerical fashion, ie image00.png, image01.png, image02.png, etc. Then run the shell script in a command prompt.
Code:#! /bin/sh echo "Converting all png images in the current directory to rle format..." count=100 for img in *.png; do filename="${img%.*}" convert -depth 8 "${filename}.png" rgb:"${filename}.raw" rgb2565 -rle < "${filename}.raw" > "sprint_power_on_${count:1}.rle" rm -f "${filename}.raw" count=`expr $count + 1` done read -p "Finished converting images, press enter to continue..." nothing # Usage: # . NAME_OF_SH_FILE.sh
01-11-2012 06:30 PMLike 2 - EarthnFire78YAY!!! ME :)Cannot find any working link to get rgb2565, does anyone have for Linux. I have a good one png 2 rle convert for windows but having one for Linux and using Jerries script would be easier.03-26-2012 04:02 PMLike 0
- JerryScriptDaydream BelieverYou can build it after syncing from an Android repo. I attached it to save you some time, built on Ubuntu.03-26-2012 07:58 PMLike 0
-
-
- anthonycrThemer. You've seen themNow that I figured out how to decompile the boot.img I thought I'd change the virgin mobile splash to something I like better.
So......
I made a series of png images in Paint.NET, saved them as sprint_power_on_00.png, etc... and tried using the converter, but ran into trouble.
Both the pngs and the converter are in the same folder, so I open command prompt (I'm running windows 7), and type:
Code:C:\Users\Anthony\Desktop\converter\convert_image_to_rle.bat C:\Users\Anthony\Desktop\converter\sprint_power_on_00.png
Converting image to rle
Cannot find path specified
I'm frustrated. I know most of you use linux, but could anyone have mercy on a poor windows user?
I've also tried straight up dropping the png right onto the batch file, and I get the same error.
I also tried dragging the batch file into command prompt (so I don't have to type it) and then drag the png in. I get the same error every time.
What the heck!!!! The png file is most certainly sitting there in path specified, despite what the prompt thinks.
Sent from my VM670 using Tapatalk 204-11-2012 05:30 PMLike 0 - EarthnFire78YAY!!! ME :)Give my png 2 rle converter a try, this way to the thread, and the download link is in the OP.anthonycr likes this.04-11-2012 07:11 PMLike 1
-
-
- Forum
- LG Android Phones
- More LG Phones
- LG Optimus Series
- Virgin Mobile Optimus V
- Optimus V Rooting, ROMs, and Hacks
Make/extract RLE files in Windows, the easy way (now with Linux)
LINK TO POST COPIED TO CLIPBOARD