FORUMS
Remove All Ads from XDA

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

365 posts
Thanks Meter: 935
 
By anbech, Senior Member on 31st October 2012, 02:21 PM
Post Reply Email Thread
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)
Attached Files
File Type: zip pngunoptimize_v11_windows.zip - [Click for QR Code] (685.7 KB, 656 views)
The Following 49 Users Say Thank You to anbech For This Useful Post: [ View ] Gift anbech Ad-Free
 
 
31st October 2012, 02:22 PM |#2  
anbech's Avatar
OP Senior Member
Thanks Meter: 935
 
More
Question 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
The Following 13 Users Say Thank You to anbech For This Useful Post: [ View ] Gift anbech Ad-Free
31st October 2012, 03:40 PM |#3  
fredmode01's Avatar
Senior Member
Thanks Meter: 1,238
 
More
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..
31st October 2012, 07:09 PM |#4  
anbech's Avatar
OP Senior Member
Thanks Meter: 935
 
More
Quote:
Originally Posted by fredmode01

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..

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
The Following 3 Users Say Thank You to anbech For This Useful Post: [ View ] Gift anbech Ad-Free
31st October 2012, 07:46 PM |#5  
motomoto00's Avatar
Recognized Themer
Flag Greece-Thessaloniki
Thanks Meter: 2,392
 
Donate to Me
More
Thanks my friend. I'll work when I have some time
31st October 2012, 07:51 PM |#6  
vegeta1's Avatar
Senior Member
Flag DELHI
Thanks Meter: 6,127
 
Donate to Me
More
Simply Superb

App Test On Its Way Brother

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

just an opinion : if you can add an open button for the converted file , would be awsum
The Following User Says Thank You to vegeta1 For This Useful Post: [ View ] Gift vegeta1 Ad-Free
31st October 2012, 08:04 PM |#7  
anbech's Avatar
OP Senior Member
Thanks Meter: 935
 
More
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
The Following 4 Users Say Thank You to anbech For This Useful Post: [ View ] Gift anbech Ad-Free
31st October 2012, 09:12 PM |#8  
raubkatze's Avatar
Senior Member
Flag St. Petersburg
Thanks Meter: 7,392
 
Donate to Me
More
Great work mate! And I see it's very useful for win users.

Using Mac I have no such issues at all. Photoshop opens 9.png with no problem and the thing which necessary to do is decrease Canvas size to get real image size for future patching after editing.
The Following User Says Thank You to raubkatze For This Useful Post: [ View ] Gift raubkatze Ad-Free
31st October 2012, 09:44 PM |#9  
kalagas's Avatar
Senior Member
Flag Crete
Thanks Meter: 2,265
 
Donate to Me
More
Just Checked And Works Fine...
Thanks A Lot Mate....
The Following User Says Thank You to kalagas For This Useful Post: [ View ] Gift kalagas Ad-Free
1st November 2012, 02:51 AM |#10  
sunnylovesalman's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 2,168
 
Donate to Me
More
A very nice and Important share for theme makers.
1st November 2012, 03:21 PM |#11  
motomoto00's Avatar
Recognized Themer
Flag Greece-Thessaloniki
Thanks Meter: 2,392
 
Donate to Me
More
Thanks a lot my friend!!! Work fine!
Post Reply Subscribe to Thread

Tags
png unoptimize theming index rgb

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes