[Android Themes] Kdio:
Just posting, with [MENTION=5282154]pas2001[/MENTION] authorization, an answer given to his doubts that may somewhat help others.

Or, somewhat, you can help us!!! :D

=-=-=-=-=-=-=

Hi P

I will heavily slice your PM trying to be as clear as possible.

Main point I want try to make:

The Tools will do all your hard work

.

To do EXACTLY above use Tool:

1 - Create Theming Workspace

Input Folder

: Folder containing ALL the apk's you want to start theming

Output Folder

: Where you want the result to be

Platform

: TouchWizard

Framework Folder

: Where yours framework-res.apk and twframework-res.apk are.

Decompilation Type

: Drawable Resources Only.

Click OK and watch the tool do all that job for you. :D

To do EXACTLY the above use Tool:

2 - Theme Batch Processor

Input Folder

: Where the optimized images are. The cool is, here you can provide the exact folder that the 1st tool generated !!!!

Output Folder

: Where you want the result to be

Now the catch is ... don't select ANYTHING more, just provide Input & Output folders and click OK. The tool will just unoptimize all the images INCLUDING .9.png's.!!!

I think that what you are calling Optimized/Unoptimized png is what the dumb one here calls Indexed/RGB images respectively. I do the exact same thing you described but I do never re-optimize them back!!! I release them as RGB (even the .9.png) and never had any complains.

Dude, please advise if I'm acting wrong so I will change my procedures.

This one should be easy by just sorting the files in explorer by date and deleting the unmodded ones.

I've already played with optimizing png's and was unable to perceive any significant gain ... is that your only reason to optimize back?

Here I can suggest you the following:

a) Before using pnggauntlet, make a copy of the themed folder to 'somewhere'

b) Open 'somewhere' with Explorer and from its root do a search for "*.9.png"

c) Select all the search result and delete

d) Now run pnggauntlet over 'somewhere' folder.

e) Copy all the result from pnggauntlet run to the initial themed folder overwriting.

Sure my option is 2 !!!! but changing it a bit ...

"2. ask you if can help me make optimize tool which can INCLUDE .9png"

This way would be even better. To accomplish your request 1st I do require 2 things:

1) Someone to tell me "Why it should be optimized?"

2) As being a noob in optimizing PNG's there are a lot of options to be made that I don't know ... Someone has to guide me on this:

PNG encoding and optimization options
-o level
Select the optimization level.
The optimization level 0 enables a set of optimization opera-
tions that require minimal effort. There will be no changes to
image attributes like bit depth or color type, and no recompres-
sion of existing IDAT datastreams.
The optimization level 1 enables a single IDAT compression
trial. The trial chosen is what OptiPNG thinks it's probably the
most effective.
The optimization levels 2 and higher enable multiple IDAT com-
pression trials; the higher the level, the more trials.
The behavior and the default value of this option may change
across different program versions. Use the option -h to see the
details pertaining to your specific version.

-f filters
Select the PNG delta filters.
The filters argument is specified as a rangeset (e.g. -f0-5),
and the default filters value depends on the optimization level
set by the option -o.
The filter values 0, 1, 2, 3 and 4 indicate static filtering,
and correspond to the standard PNG filter codes (None, Left, Up,
Average and Paeth, respectively). The filter value 5 indicates
adaptive filtering, whose effect is defined by the libpng(3)
library used by OptiPNG.

-full Produce a full report on IDAT. This option might slow down the
trials.

-i type
Select the interlace type (0-1).
If the interlace type 0 is selected, the output image shall be
non-interlaced (i.e. progressive-scanned). If the interlace type
1 is selected, the output image shall be interlaced using the
Adam7 method.
By default, the output shall have the same interlace type as the
input.

-nb Do not apply bit depth reduction.

-nc Do not apply color type reduction.

-np Do not apply palette reduction.

-nx Do not apply any lossless image reduction: enable the options
-nb, -nc and -np.

-nz Do not recode IDAT datastreams.
The IDAT optimization operations that do not require recoding
(e.g. IDAT chunk concatenation) are still performed.
This option has effect on PNG input files only.

-zc levels
Select the zlib compression levels used in IDAT compression.
The levels argument is specified as a rangeset (e.g. -zc6-9),
and the default levels value depends on the optimization level
set by the option -o.
The effect of this option is defined by the zlib(3) library used
by OptiPNG.

-zm levels
Select the zlib memory levels used in IDAT compression.
The levels argument is specified as a rangeset (e.g. -zm8-9),
and the default levels value depends on the optimization level
set by the option -o.
The effect of this option is defined by the zlib(3) library used
by OptiPNG.

-zs strategies
Select the zlib compression strategies used in IDAT compression.
The strategies argument is specified as a rangeset (e.g.
-zs0-3), and the default strategies value depends on the opti-
mization level set by the option -o.
The effect of this option is defined by the zlib(3) library used
by OptiPNG.

-zw size
Select the zlib window size (32k,16k,8k,4k,2k,1k,512,256) used
in IDAT compression.
The size argument can be specified either in bytes (e.g. 16384)
or kilobytes (e.g. 16k). The default size value is set to the
lowest window size that yields an IDAT output as big as if
yielded by the value 32768.
The effect of this option is defined by the zlib(3) library used
by OptiPNG.

To send your theme for the users to flash.

Remember when creating batteries on 4.2.2 ? Place your batteries png icons inside a folder:

"c:\gimp\in\system\app\SystemUI.apk\res\drawables-xxhdpi\"

Now go to the tool "9 - Create Flashable ZIP" and give as Input Folder "c:\gimp\in"

That's it ... your flashable batteries ZIP is ready to the customers :D

You are right ... Tool 4 lost function with KitKat. :rolleyes:

Tool 7 indeed will compile the output of Tool 1 but I think that we (themers) would not use it frequently as is flawless easier use Villain Flashed.

I hope have answered all your doubts ... please advise if any remains.

Cheers.

.