[Program] PNG Un-Optimizer v1.1 [Windows][02-11-2012]

anbech

Senior Member
Jun 20, 2012
365
936
0
hi themers! :)

After png's have been optimized, they are shown as indexed color mode, and therefore isnt correctly loaded with photoshop.
So made a small tool, that is able to convert lots of png-files, into 32bit RGB Alpha mode, so that they are all readable with photoshop, and other image editors as well.

I made this tool, because i thought it was a bit of a hassle to convert every png with indexed color mode, into 32bit RGBA mode, one by one. I do realize that it can be accomplished by batch processing, but thought it would be a lot easier with a GUI tool, so I made this :)

What it does exactly, is that the themer can add thousands of png's to a list, and then convert all of them, with only a few clicks.

I actually dont know how 9-patch png's (*.9.PNG) are behaving after the convertion, so made a button to exclude them from the list, before converting, so they dont get "hurt" in the process.
*EDIT* - Un-Optimizing compiled ninepatch files will mess them up, and they will not work afterwards!


Index color mode png opened with photoshop:
(Before)



The exact same png opened with photoshop, but Un-optimized with my tool:
(After)



If i helped, i only ask for a "Thanks", and if anyone run into problems, have some ideas for changes or anything else, please let me know :)
And if just one person find this useful, ill consider this project: "time well spended" ;)

Cheers!


TODO List:
+ Add "Un-Optimize selected file(s)" to the right-click context menu
+ Add panning/scroll feature at View Image window
+ Add "Un-Optimize" to windows context menu, when right-clicking png files
+ Add "Optimize" functionality, to make files optimized again
+ Port it to Linux (?)

Current release:
v1.1
+ Added Double-Click on items in list, to show image and its resolution, but not bitdepth as it showed 32bit on index png-files as well. Making it show if its index mode seems like a bit of a struggle to accomplish, so didnt add that.
+ Added Right-Click context menu at items in the list, with the ability to show the image, open in favorite editor and remove from list.
+ Added Drag&Drop function.
+ Added Settings window, to set Favorite Image Editor (like photoshop or such...) and Exclude 9-Patch (*.9.PNG) files from list on every add.
+ Fixed a lot of code, so its now more stable and user-friendly.

Previous releases:
v1.0
(First official release)
 

Attachments

Last edited:

anbech

Senior Member
Jun 20, 2012
365
936
0
How to use this tool

First of all, if you havent already, then extract the zip content to anywhere you feel like.. Some place you remember :)

When starting it up, you will see some buttons, and they are kind of self-explanatory, but nevertheless ill explain it anyway.


The first thing you are going to do, is to add some files to convert:

Or you can just drag+drop files and folders from explorer or something similar, onto the tool. This is a newly added feature, so please report if anything goes wrong :)

Then you might want to remove some file(s), you can just select the one(s) from the list, holding CTRL down while left-click on the items. After that, click the "Remove selected..."-button.
I recommend that you click "Remove 9-Patch files..."-button, before starting the convertion, as *.9.png files gets messed up in the process. The technical thing, is that they loose the byte chunk binary information in the header, and therefore cant decode.


Now, you should be ready, so just click the "Start !"-button, to begin the convertion. It will take a few minuttes to finnish, depending on your machine and how many PNG-files to convert, and their size and details.


For future use, it would be a good idea to check out the Settings for this tool.


When the settings window is open, you are able to set your Favorite Image Editor (like Photoshop or such...), so that you are able to select one or more files in the list, right-click and "Open selected file(s) in Favorite image editor". This will then launch you image editor, and then open the selected file(s), within this and your are ready to edit them from there.
There is also the option to make it exclude 9-patch files, by default everytime you add files to the list.


If you have any questions, constructive critism, or just some ideas to be made, then feel free to post :)
 
Last edited:

fredmode01

Senior Member
May 3, 2010
769
1,205
0
Damn... thanks limit... I'll try to remember to give you later the one you deserve.

I've not tried your tool, I'm at the office, leaving in two minutes, but I'm sure it's going to make my life easier.. this indexed color mode drives me crazy..

Thanks anyway, I'll give you feedback later too.. :eek:
 

anbech

Senior Member
Jun 20, 2012
365
936
0
Damn... thanks limit... I'll try to remember to give you later the one you deserve.

I've not tried your tool, I'm at the office, leaving in two minutes, but I'm sure it's going to make my life easier.. this indexed color mode drives me crazy..

Thanks anyway, I'll give you feedback later too.. :eek:
thanks mate :)
yeah, that was how i felt before making this tool.. so im glad it will make your life easier as well ;)
looking forward for your feedback :good:
 

vegeta1

Senior Member
Nov 9, 2011
5,721
6,109
0
DELHI
Simply Superb :highfive::good:

App Test On Its Way Brother :D:highfive:

edit : ran a simple test and this is so sexy mate , big thanks will save alot ,, alot of time for users and new themers :D

just an opinion : if you can add an open button for the converted file , would be awsum :)
 
Last edited:
  • Like
Reactions: ::indie::

anbech

Senior Member
Jun 20, 2012
365
936
0
thanks my friends! really glad you like this.. and yeah, this is making theming a whole lot faster.. :)
the point with this, is just select all the apk's output folders, and click "Yes" to include subdirectories, and then it will add all pngs to convert into nicely editable files :) but, dont know about the 9patch ones, so made a button to exclude them from the list, right before converting, just in case ;)

vegeta, ive already planned to make a double-click function on the items, in the list, to show the image in another window.. and some small description of the image, like resolution, bit depth, and such... so, that will be added into the next version ;)

EDIT:
you guys should probably subscribe to this thread, because updates will come, guaranteed.. just a suggestion ;)

EDIT2:
Updated the TODO list :)
 
Last edited:

anbech

Senior Member
Jun 20, 2012
365
936
0
vegeta, im glad that youre glad about the new changes ;)
hope it comes handy for all the themers at xda.. i certainly, as the developer of it, think its making the theming process a lot faster.. just add the SystemUI extracted apk and framework-res.apk, and it will make ALL the png's fully editable, except 9patch files though... :)
 
  • Like
Reactions: dully79

dully79

Senior Member
Apr 29, 2010
2,845
3,395
0
res/drawable
droidcandy.weebly.com
Thank you

I had to come out of exile to say many, many thanks for this tool.
I've been looking for something like this for a long time instead of using fireworks or pixlr.com.
It runs very smooth and is very light on resources.:)

If i may make a suggestion. How about adding a right click "un optimize" option to the windows right click menu?.
Highlight png/s> right click> un optimize.
 

anbech

Senior Member
Jun 20, 2012
365
936
0
I had to come out of exile to say many, many thanks for this tool.
I've been looking for something like this for a long time instead of using fireworks or pixlr.com.
It runs very smooth and is very light on resources.:)

If i may make a suggestion. How about adding a right click "un optimize" option to the windows right click menu?.
Highlight png/s> right click> un optimize.
awesome mate! really appreciate it, means a lot to me, since ive used countless hours on this project already ;)
great idea mate, dont know why i havent thought of that.. going to add that to the TODO list at OP, and will be available in the next release.. :)
so may i suggest that you subscribe this thread, to keep yourself updated..? :)
cheers mate, and thanks for all the "thanks" you gave ;)