Remove All Ads from XDA
Honor View 10

[TOOL][.9.png][REPOST] 9-Patch-Resizer

1,280 posts
Thanks Meter: 2,052
By Peteragent5, Senior Member on 16th September 2012, 07:25 AM
Post Reply Email Thread
  • A resizer tool to automaticaly resize png files and 9 patches in several densities
Source Code
Supported DPIs:
  • HDPI
  • MDPI
  • LDPI
Thanks to:

The Following 155 Users Say Thank You to Peteragent5 For This Useful Post: [ View ] Gift Peteragent5 Ad-Free
16th September 2012, 07:27 AM |#2  
Peteragent5's Avatar
OP Senior Member
Flag Richmond
Thanks Meter: 2,052
Donate to Me

- Numerous bug fixes
- Fixed compiler warnings
- Included portable ImageMagick binaries
- Updated ImageMagick to 6.8.5-8
- Improved commandline options
- A selection of DPIs must now be chosen
- Fixed Java errors
- Fixed settings.ini errors
- Renamed log to: art-log.txt
- Displays an error/warning when conversion fails
- Log can now output both stdout & stderr
- Improved searching for photos in source folder
- No longer need Boost

- Fixed the output of images
- Added Drag & Drop feature
- Runs a load of tests before converting
- Updated convert.exe to 6.8.4-8 (for Windows)
- Added some code that give some hints if conversion of a png || 9.png file fails.
- The program now will continue converting if a failure occurs. Previously it skipped files.
- Pictures with small dimensions will not convert
- Fixed command line arguments
- Fixed the date on logging output
- Optimized the tool for better memory
- Bug fixes

- Rewritten code using C++, now native on OS
- Many bug fixes
- Removed drag & drop feature
- Logging feature added
- Improved speed of booting
- New UI
- Portable convert.exe for Windows
- You still need to install ImageMagick on Linux/MacOSX

- Drag & Drop source folder onto art.exe to convert
- First time Setup
- Cleaned up the UI
- Removed clean-folders.exe
- No need to install ImageMagick
- Improved boot time
- Checks for errors before converting
- Available syntax & usage

- Very smart clean folders EXE file (Windows Only)
- Switched to EXE files (Windows Only)
- Fixed settings.ini resetting to defaults while restarting RUN-ME.exe (Windows Only)
- Fixed settings.ini detection (Windows Only)
- Improved a lot (Windows Only)

- Adapted Windows Vista/7 Environment (Windows Only)
- Fixed ImageMagick check on 64-bit machines (Windows Only)
- Fixed some errors in the batch files (Windows Only)
- Check for Java (Windows Only)

- Support for Mac OS X
- Fixed input sub-folder detection (Windows Only)
- Modified settings to match each OS
- Switched all archived formats to: TAR

- Cleaned up workspace
- Support for Linux/Unix
- Added README file for Instructions & Usage
- Improved clean-folders dramatically. It now depends on settings.ini. (Windows Only)
- Addded 64-bit support (Windows Only)
- Automatically detects if PC 32-bit or 64-bit (Windows Only)

- Initial shared release
The Following 35 Users Say Thank You to Peteragent5 For This Useful Post: [ View ] Gift Peteragent5 Ad-Free
16th September 2012, 07:32 AM |#3  
devilsking's Avatar
Recognized Themer
Flag Hanoi
Thanks Meter: 1,018
Donate to Me
Thank you. Nice work
19th September 2012, 07:39 PM |#4  
FerhatRemory's Avatar
Senior Member
Flag St-Niklaas
Thanks Meter: 419
Donate to Me
20th September 2012, 02:45 AM |#5  
sad25kag's Avatar
Senior Member
Flag Kota Pempek
Thanks Meter: 40
20th September 2012, 12:32 PM |#6  
shoutokuyaki's Avatar
Senior Member
Thanks Meter: 36
I hope can work in linux

Sent from my GT-S5360 using xda app-developers app
26th September 2012, 12:46 PM |#7  
farzad.u235's Avatar
Senior Member
Flag susa
Thanks Meter: 173
Originally Posted by shoutokuyaki

I hope can work in linux

Sent from my GT-S5360 using xda app-developers app

Me too.Linux users usually haven't any luck in top tools such this
26th September 2012, 04:53 PM |#8  
Pancakes_Gio's Avatar
Senior Member
Flag Liberty City - Algonquin
Thanks Meter: 201
AWESOME DUDE! Thanks ive been looking for a tool like this my whole life! But what if i wanted to port from an ArmV7 device? Will it work?

Epic Sax Guy Is Epic.
26th September 2012, 10:28 PM |#9  
Pator57's Avatar
Senior Member
Thanks Meter: 319
Originally Posted by Peteragent5

I thought I finally released this project I've been working on...
(Help me come up with a different name for this tool..)

This is a fork from: Android Drawable Converter
Licensed under: GNU GPL v3

Supported DPIs:

  • HDPI
  • MDPI
  • LDPI

  • Supports all/most DPIs
  • Supports .9.png (draw9patch) (nine) converting/resizing
  • Convert drawables into multiple densities automatically
  • Added a BAT script to fasten up this process
  • Saves you time!

How to do it:
  • Download & Install ImageMagick (Q16)
  • Download the file below. Unzip it to a place with no spaces. e.g. C:\
  • Place the PNGs you want to convert in "in" folder.
  • The default output folder is "out"
    • Be sure to set the right DPI for source and destination (in & out folder)
  • Run: RUN-ME.bat
    • Y to Start converting
    • N to modify settings
    • X to Exit

  • JAR version: 2.0.0
  • BAT version: 0.1

ALL credits to:(He made this possible! ^^)

Please do not ask me to make this compatible with Linux, UNIX, BSD, or Mac. I will not!
Windows ONLY

(If you found a way to install ImageMagick on one of the OS above, and modified the "convert_command" code for your OS, please let me know.)

(Remember: All credits to kevinkamps)

Thanks luffy .I will try.

Sent from my HTC Wildfire using xda premium
The Following User Says Thank You to Pator57 For This Useful Post: [ View ] Gift Pator57 Ad-Free
27th September 2012, 01:21 AM |#10  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,283
hey. with this theme would i be able to convert HDPI CM9/10 themes to MDPI?
27th September 2012, 02:44 AM |#11  
bigsupersquid's Avatar
Senior Member
Flag BFE, MO
Thanks Meter: 1,616
Donate to Me
in Debian linux,
apt-get install imagemagick

imagemagick for linux is called by typing command without the .exe, and the path to it is set automatically when it is installed by apt-get.

can't execute the RUN-ME.bat in a minimal Wine (windows emulator) install 'cause it can't get at imagemagick or Java. bummer.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes