[Hero CDMA Android Development] alexthearmo:
Updated instructions on how to port the pngs to mdpi!

Here are detailed instructions on how to port the pngs for anyone who is interested in helping. It's really easy! The more help we get the quicker we can have this ROM! :D

Before starting, install these programs on your pc.

This is for the PNGS Program for PNGS

This is for 9.pngs Program for 9.pngs

Once installed, you can start:

1) Download the MIUI ROM at the bottom of the first page (original post).

2) unzip it.

3) Open the folder and find system/app.

4) Choose an apk file from the system/app folder that hasn't been worked on (see original post for a list of files that are currently being worked on).

5) Once you've chosen your apk (or apks) PM Alexthearmo so he knows which ones you are working on, and can update the original post so others don't work on the same apk.

6) Rename the apk to .zip and unzip the files (or just use the free program "7zip" to unzip the apk...either way works).

7) Go to the RES folder. In the res folder you will find some folders with the word "drawable" in the titles. Any folder that has the word "drawable" somewhere in the title has pngs that need to be edited. (Note: It is a good idea to check the other folders too, just in case there are some pngs hiding in them as well).

Now that you've found the images, we can start resizing them. We will start with the regular pngs first.

8) Open the Multiple Image Resizer program that you just installed and click: "Add individual images".

9) Navigate to the folder with the images you want to resize and select ALL of the PNGS (Note: Do NOT select any 9.pngs. They will get ruined!) and click "open".

10) Now that your images are in the program, go to the bottom of the program window and you will see "Save Options". Click on it and and create a folder that you want to save them to (Note: It's a good idea to name the folder the same as the folder you are taking the images from. Like, Drawable-hdpi or whatever it's called. I usually save them on my desktop). Also...click "Maintain Original Resolution". Make sure "Processed Image Filetype" is set for PNG and NOT jpeg!

11) Now, on the bottom panel navigate to "Processing Options" and make sure only "Resize Images" is checked.

12) Now, on the bottom panel navigate to "Resizing Options". Check the "Percentage" option, and then enter 66% into the little percentage box.

13) Finally, navigate to "Go" and click "Go". It'll resize all your pngs at once! :D

14) Do this for each folder in the apk with regular pngs in them till all your pngs have been resized.

Now we can start resizing the 9.pngs

15) Open one of the drawable folders from your apk, and delete all the regular pngs (since you've already resized them and they are in a separate "finished" folder). By deleting all the original sized pngs, you will be able to see which 9.pngs need to be edited. Note: Make sure to double check before clicking delete! You definitely don't want to accidently delete any 9.pngs.

16) Find any 9.pngs that are the same size (ie: multiple images that are 48x48, or multiple images that are 126x20, etc.)

17) Select all the images that are the same size (ex: all images that are 48x48)

18) Use a calculator to find out what 66% of 48 is. For example...type in 48, then multiply it by .66. The answer is about 32. This will be the size of your new images: 32 x 32! (NOTE: If the image is not a perfect square you will need to find out what each number is...for example, if the image is 120 x 100, then you need to multiply 120 by .66, which is 79, and then multiply 100 by .66 which is 66. So your new image will be 79 x 66)

19) Once you've figured out the right size for your new image (and you've made sure that all same size images are selected) right click one of the images and select "resize pictures".

20) Select custom, enter your new image size, make sure the "Resize the original pictures (don't create copies" box is checked, and click ok. (Sometimes the 9.pngs don't resize properly if you check the "Resize the original pictures" box...so maybe it'd be better to just keep it unselected, let it make copies, and then delete the originals and rename the new ones...at least for the 9.pngs...but give it a try both ways, and see which way works for you.)

21) Once your selected 9.pngs have been resized, drag and drop them into your "finished" folder with the pngs that you resized earlier. This way, you know exactly which 9.pngs you have left to do.

22) Do this again for all the different sized pictures in the folder, remembering to change the measurements to their new sizes (multiply by .66 to get the right measurements).

23) You are done! Now zip up the RES folder and PM it to Alex letting him know you are done. Make sure you remind him what apk (or apks) it was for.

24) Alex will add your name to the HERO MIUI "hall of fame" in the original post where it will stand in all its' glory forever and ever! :D

Asadullah made a video, but his process might be a little different than what I wrote...but still, feel free to check it out if it will help you:

http://www.youtube.com/watch?v=bhnsAtKKoOg

Thanks for your help! Let's get this done!