[TOOL][WINDOWS][.PNG][.9.PNG] Android Drawable Resizer Tool

Search This thread

~RoN~

Member
Apr 3, 2013
32
79
hi boy . i have test your new version with my framework i have 1990png and i use your soft (win 7 64bits ultimate) with XHDPI to MDPi i have 1039png in finish folder .:/
where i can found logcat ?

Edit second test i have 1539 png lol

Does it happen every time? Try using less pngs. maybe it doesn't have enough memory to perform all the resizing and saving..
When you choose less pngs, for example 100, does it happen too?
 

the1dynasty

Senior Member
Dec 16, 2011
4,332
3,151
sorry, haven't done theme chooser in a bit so i had no immediate use for this... but now i'm tweaking some images for my apps and i really needed this for .9.png's... no rush... but if you need someone to test that for you, lmk!! other than that, easy to use program... works perfectly!
 

sijav

Senior Member
Sep 3, 2012
903
954
29
Tehran
too many of these problems!
Code:
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_solid_dark_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_solid_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_solid_inverse_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_solid_inverse_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_transparent_dark_holo.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #1 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_bottom_transparent_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_solid_dark_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_solid_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_solid_inverse_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_solid_inverse_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_dark_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_inverse_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_inverse_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_light_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_solid_light_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_transparent_dark_holo.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_transparent_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_transparent_light_holo.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #1 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_stacked_transparent_light_holo.9.pn
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_transparent_dark_holo.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #1 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_ab_transparent_dark_holo.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_focused_holo_dark.9.png malfor
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_focused_holo_da
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_focused_holo_light.9.png malfo
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_focused_holo_li
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_holo_dark.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_holo_dark.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_disabled_holo_light.9.pn
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_focused_holo_dark.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_focused_holo_dark.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_focused_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_focused_holo_light.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_normal_holo_dark.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_normal_holo_dark.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_normal_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_normal_holo_light.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_pressed_holo_dark.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #11 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_pressed_holo_dark.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_pressed_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #12 along top edge.
ERROR: Failure processing PNG image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_btn_toggle_on_pressed_holo_light.9.png
ERROR: 9-patch image H:\Xtream\new\framework\old\framework-res\res\drawable-hdpi\semc_day_picker_week_view_dayline_holo.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
 

toorentz

Senior Member
Feb 17, 2013
61
27
25
Lahore
facing this error,someone help.currently using microsoft .net framework 4??

unable to find the version of run time to run this application
 
Last edited:
  • Like
Reactions: A_U

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    [TOOL] Android Drawable Resizer Tool

    Hi!

    Can you count how many times you created a drawable for your app?
    The answer is probably NO.
    You opened your favorite image-editing software, designed a beautiful drawable, saved, and now of course, there's the simple but annoying thing, of resizing the drawable to fit every density.
    No more! Android Drawable Resizer, replaces you in the last annoying part.
    All you have to do, is to choose a drawable, tell the software which density does it belong to, choose the the res folder, and press Go!. The software will know how and where to place each resized drawable, with the correct name.


    Requirements:
    If you don't have a .NET Framework installed, download and install this:
    http://msdn.microsoft.com/en-us/vstudio/aa496123

    Instructions:

    1. Download the zip file.
    2. Extract it including the .dll file.
    3. Run the .exe file.
    *Note: Both files need to be in the same place in order to activate the program!
    4. Choose the source drawable density
    5. Choose the drawable you want to resize
    6. Choose which densities you want to export to
    7. Choose the destination folder. The program will create a folder for each density selected (if the folder doesn't exist), and then insert the resized drawables to their right place
    8. Press Go!
    9. Enjoy!
    10. Hit the Thanks button, or even donate for my work :eek:

    Current Version: 1.1.3.0
    From XDA: View attachment 1904989
    Or from dev-host - Here

    Screenshot:

    50934020.png


    To do:

    --->Change the selected drawables gallery (If you know of a free control for that, please P.M me) In progress
    --->Adding the abillity to decompile-->resize-->recompile .9.png files In progress

    --->Translation to more languages Not in the next version

    Credits:
    --->ComponentFactory Krypton 4.4.0 great .NET library
    3
    Keep up the great work!
    Already a very useful tool, and is headed towards becoming really great! :good:
    Don't stop and thanks again for the prompt response.
    You can look at my progress in the first page in the To-Do section.
    I am currently testing the new features, and already working on new ones :D

    Update: I finished the version. Many features added!
    2
    Is this compatible with xxhdpi
    Sent from my 5th Dimension eVo 3D
    *Team 420 band of Misfits*
    Not yet, I will soon add it. It is quite simple
    So this software can resize .9.PNGs without any errors?? With the placers at the correct positions??
    Yes. There shouldn't be any problems. The software refer to .9.PNGs as regular PNGs, and it just scales the images. The placers' positions shouldn't change.
    2
    Let me know if you need more: CRASH DUMP (temp file)
    Crashes when trying to run.
    Code:
    <Parameter8>System.IO.FileNotFoundException</Parameter8>

    Thank you for your efforts on this handy tool. :)

    Solved it, I was stupid enough to not include a dll file. :silly:

    I uploaded a new version. The zip now contains two files.
    Both files need to be in the same place in order to activate the program!
    2
    Thanks! Works now!
    Much appreciated for the prompt response and fix.
    Now if I may make a couple requests/suggestions.
    It would be great to be able to choose multiple files(select all) when browsing for images to resize(for batch processing)
    As it takes a while to do each one individually, but not as long as resizing manually, so that's a plus!
    Maybe that is something I am overlooking on my end to enable that in that selection window.
    Other thing I noticed was with the destination density:
    I assumed that selecting a destination density would then give me that resolution as output.
    I quickly found out, that was the opposite of how it works.
    The density I chose was the only one not produced/resized, so essentially they are all enabled by default and the selection is to omit or remove a density from the process.
    That's fine I suppose, just a little reverse of what I initially thought.
    Maybe it would be better to only output the densities selected, I don't know, small detail I guess.
    The last thing was that I noticed it tags each image name with it's density in the image name.
    That requires a lot of renaming if doing many images.
    Seems maybe if they output to relevant resolution folders, they would not have to be renamed at all.
    Again, maybe this was my fault, due to using an output folder and not leaving it to do it's default thing, but I don't think that's the case.

    Thanks again for your efforts on this.
    I could see this becoming very useful, keep up the great work! :good:

    First, I'm glad it now works.
    Second, Thank you for the suggestions. About the multi-select, it have been in my to-do list since the beginning.
    About the images renaming, you are absolutely right, especially after multi-select will be supported...
    I am starting to work on that right now. Probably tomorrow there will be new version:fingers-crossed:
    Update: I am almost done, and it looks really good :victory: