Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Peteragent5

16th September 2012, 07:25 AM   |  #1  
Peteragent5's Avatar
OP Recognized Contributor
Flag Richmond
Thanks Meter: 1,990
 
1,268 posts
Join Date:Joined: Jan 2012
Donate to Me
More
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 07:56 AM.
The Following 138 Users Say Thank You to Peteragent5 For This Useful Post: [ View ]
16th September 2012, 07:27 AM   |  #2  
Peteragent5's Avatar
OP Recognized Contributor
Flag Richmond
Thanks Meter: 1,990
 
1,268 posts
Join Date:Joined: Jan 2012
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 06:22 PM.
The Following 34 Users Say Thank You to Peteragent5 For This Useful Post: [ View ]
16th September 2012, 07:32 AM   |  #3  
devilsking's Avatar
Recognized Themer
Flag Hanoi
Thanks Meter: 992
 
1,068 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Thank you. Nice work
19th September 2012, 07:39 PM   |  #4  
FerhatRemory's Avatar
Senior Member
Flag St-Niklaas
Thanks Meter: 419
 
201 posts
Join Date:Joined: Jan 2012
Donate to Me
More
thanks
20th September 2012, 02:45 AM   |  #5  
sad25kag's Avatar
Senior Member
Flag Kota Pempek
Thanks Meter: 39
 
134 posts
Join Date:Joined: Sep 2011
More
Thank's.
20th September 2012, 12:32 PM   |  #6  
Senior Member
Thanks Meter: 36
 
356 posts
Join Date:Joined: Feb 2012
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: 172
 
539 posts
Join Date:Joined: Sep 2011
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, 04:53 PM   |  #8  
Pancakes_Gio's Avatar
Senior Member
Flag Liberty City - Algonquin
Thanks Meter: 200
 
1,253 posts
Join Date:Joined: Apr 2012
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, 10:28 PM   |  #9  
Pator57's Avatar
Senior Member
Thanks Meter: 312
 
1,145 posts
Join Date:Joined: Jun 2012
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, 01:21 AM   |  #10  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
6,304 posts
Join Date:Joined: Mar 2011
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes