Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,803 Members 36,827 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL][Multi-Platform][.9.png] Android Resizer Tool v2.7

Tip us?
 
Peteragent5
Old
(Last edited by Peteragent5; 26th June 2013 at 03:01 AM.)
#1  
Peteragent5's Avatar
Recognized Contributor - OP
Thanks Meter 1,978
Posts: 1,268
Join Date: Jan 2012
Location: Richmond

 
DONATE TO ME
Thumbs up [TOOL][Multi-Platform][.9.png] Android Resizer Tool v2.7

Description:

Source Code
Features:
  • Supports all/most DPIs
  • Written in C and C++, compiled with GCC
  • Support for Windows, Mac OS X, and Linux/Unix
  • Supports .9.png (draw9patch) (nine) converting/resizing
  • Convert drawables into multiple densities automatically
  • Saves you time!
Supported DPIs:
  • XHDPI
  • HDPI
  • MDPI
  • LDPI
Instructions:
  1. Download the tool below for your OS
  2. Make sure you have Java installed
  3. That's it! Enjoy!
Usage:
  • *no argument* (load console menu)
  • -c (convert)
  • -h (display help)
  • -v (display tool version)
  • setup (to modify settings)
Options:
  • You can use all the parameters in settings.ini as arguments when executing ART.jar.
    Ex: "java -jar ART.jar convert_destinations ldpi"
  • You can supply multiple convert_destinations by adding a comma ","
    Ex: "convert_destinations=ldpi,mdpi,hdpi"
  • Technically you could use this tool for iPhone by defining your own formats and defining the convert_source_path and convert_destination_path in the settings.
Credits & Thanks to:

Remember:

Away for 2 months.
 

Galaxy Gio GT-S5660M | Galaxy Nexus GT-I9250M | BlackBerry PlayBook
GitHub
The Following 133 Users Say Thank You to Peteragent5 For This Useful Post: [ Click to Expand ]
 
Peteragent5
Old
(Last edited by Peteragent5; 29th June 2013 at 05:22 PM.)
#2  
Peteragent5's Avatar
Recognized Contributor - OP
Thanks Meter 1,978
Posts: 1,268
Join Date: Jan 2012
Location: Richmond

 
DONATE TO ME
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
Away for 2 months.
 

Galaxy Gio GT-S5660M | Galaxy Nexus GT-I9250M | BlackBerry PlayBook
GitHub
The Following 33 Users Say Thank You to Peteragent5 For This Useful Post: [ Click to Expand ]
 
devilsking
Old
#3  
devilsking's Avatar
Recognized Themer
Thanks Meter 987
Posts: 1,066
Join Date: Sep 2010
Location: Hanoi

 
DONATE TO ME
Thank you. Nice work
♬ Developer/Themer @ The Myth Team ♬

www.TheMythTeam.com

Supported Devices: Galaxy Ace, Galaxy GIO, Galaxy SII, Nexus 7, Atrix HD
 
FerhatRemory
Old
#4  
FerhatRemory's Avatar
Senior Member
Thanks Meter 419
Posts: 201
Join Date: Jan 2012
Location: St-Niklaas

 
DONATE TO ME
thanks
Member and developer of GalaxyICS
Founder and creator of Ferhatmod ICS: Ferhatmod downloadlink ICS 4.0.1 On Samsung Galaxy Ace


Yeah, I'm a DJ , check http://x-matricide.com/

Team Cooper Member

Official company:
Vrnet.be
 
sad25kag
Old
#5  
sad25kag's Avatar
Senior Member
Thanks Meter 38
Posts: 134
Join Date: Sep 2011
Location: Kota Pempek
Thank's.
 
shoutokuyaki
Old
#6  
Senior Member
Thanks Meter 36
Posts: 356
Join Date: Feb 2012
I hope can work in linux

Sent from my GT-S5360 using xda app-developers app
 
farzad.u235
Old
#7  
farzad.u235's Avatar
Senior Member
Thanks Meter 172
Posts: 539
Join Date: Sep 2011
Location: susa
Quote:
Originally Posted by shoutokuyaki View Post
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
PROJECTS

SENSE 2.1 For GIO (Back To Work)

U235 kernel For Galaxy Gio

Samsung e490>>>Galaxy Gio>>>Galaxy s III>>>Xperia z (Still Love GIO)


Press Thanks If I helped You !
 
Pancakes_Gio
Old
#8  
Pancakes_Gio's Avatar
Senior Member
Thanks Meter 200
Posts: 1,253
Join Date: Apr 2012
Location: Liberty City - Algonquin
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.
 
Pator57
Old
#9  
Pator57's Avatar
Senior Member
Thanks Meter 294
Posts: 1,126
Join Date: Jun 2012
Quote:
Originally Posted by Peteragent5 View Post
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: [ Click to Expand ]
 
-DarkKnight-
Old
#10  
-DarkKnight-'s Avatar
Senior Member
Thanks Meter 1,224
Posts: 6,284
Join Date: Mar 2011
Location: Gotham
hey. with this theme would i be able to convert HDPI CM9/10 themes to MDPI?

 


Device: Nexus 5
Rom: CM11

Device: Galaxy SII T989
Rom: Broke

Device: Desire Z
ROM: Sold

Device: Acer Iconia A100
ROM: Bricked

Device: LG Optimus T, Nexus One
Status: Sold


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes