FORUMS

Make Your Network Smart – XDA Xposed Tuesday

We rave about the features and abilities of our smartphones. However, in order for … more

Dr.Ketan Brings The S6 Theme Store To The Note 4

Dr.Ketan has submitted a video to the forums showing a functional port of the Galaxy S6 … more

Do You Have Insurance on Your Smartphone?

While affordable smartphones are becoming more available, the majority of high-end flagships … more

Apple Music Will Increase iTunes Match to 100,000 Songs

The battle for music streaming subscription dominance is starting to really heat … more

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

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

Last edited by Peteragent5; 3rd December 2014 at 06:56 AM.
The Following 144 Users Say Thank You to Peteragent5 For This Useful Post: [ View ]
 
 
16th September 2012, 06:27 AM |#2  
Peteragent5's Avatar
OP Senior Member
Flag Richmond
Thanks Meter: 2,009
 
Donate to Me
More
Changelog:

Code:
v2.7
- 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

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

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

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

v2.3
- 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)

v2.2
- 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)

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

v2.1
- 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)

v2.0.0
- Initial shared release
Last edited by Peteragent5; 29th June 2013 at 05:22 PM.
The Following 35 Users Say Thank You to Peteragent5 For This Useful Post: [ View ]
16th September 2012, 06:32 AM |#3  
devilsking's Avatar
Recognized Themer
Flag Hanoi
Thanks Meter: 1,006
 
Donate to Me
More
Thank you. Nice work
19th September 2012, 06:39 PM |#4  
FerhatRemory's Avatar
Senior Member
Flag St-Niklaas
Thanks Meter: 419
 
Donate to Me
More
thanks
20th September 2012, 01:45 AM |#5  
sad25kag's Avatar
Senior Member
Flag Kota Pempek
Thanks Meter: 39
 
More
Thank's.
20th September 2012, 11:32 AM |#6  
Senior Member
Thanks Meter: 36
 
More
I hope can work in linux

Sent from my GT-S5360 using xda app-developers app
26th September 2012, 11:46 AM |#7  
farzad.u235's Avatar
Senior Member
Flag susa
Thanks Meter: 172
 
More
Quote:
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, 03:53 PM |#8  
Pancakes_Gio's Avatar
Senior Member
Flag Liberty City - Algonquin
Thanks Meter: 200
 
More
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, 09:28 PM |#9  
Pator57's Avatar
Senior Member
Thanks Meter: 315
 
More
Quote:
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:

  • XHDPI
  • HDPI
  • MDPI
  • LDPI

Features:
  • 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

Versions:
  • 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.)


DOWNLOAD
(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 ]
27th September 2012, 12:21 AM |#10  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
More
hey. with this theme would i be able to convert HDPI CM9/10 themes to MDPI?
Post Reply Subscribe to Thread
Previous Thread Next Thread