Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Peteragent5
Old
(Last edited by Peteragent5; 17th April 2013 at 04:54 AM.)
#1  
Peteragent5's Avatar
Recognized Contributor - OP
Thanks Meter 1711
Posts: 1,242
Join Date: Jan 2012
Location: Richmond

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

Description:

Source Code
Features:
  • Supports all/most DPIs
  • Compiled with C++ and Boost Filesystem Library
  • 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. Install ImageMagick if you're on Linux/Mac OS X
  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:


Samsung Galaxy Gio GT-S5660M | BlackBerry PlayBook
GitHub
The Following 82 Users Say Thank You to Peteragent5 For This Useful Post: [ Click to Expand ]
 
Peteragent5
Old
(Last edited by Peteragent5; 17th April 2013 at 04:51 AM.)
#2  
Peteragent5's Avatar
Recognized Contributor - OP
Thanks Meter 1711
Posts: 1,242
Join Date: Jan 2012
Location: Richmond

 
DONATE TO ME
Changelog:
----------------
v2.6
  1. Fixed the output of images
  2. Added Drag & Drop feature
  3. Runs a load of tests before converting
  4. Updated convert.exe to 6.8.4-8 (for Windows)
  5. Added some code that give some hints if conversion of a png || 9.png file fails.
  6. The program now will continue converting if a failure occurs. Previously it skipped files.
  7. Pictures with small dimensions will not convert
  8. Fixed command line arguments
  9. Fixed the date on logging output
  10. Optimized the tool for better memory
  11. Bug fixes
v2.5
  1. Rewritten code using C++, now native on OS
  2. Many bug fixes
  3. Removed drag & drop feature
  4. Logging feature added
  5. Improved speed of booting
  6. New UI
  7. Portable convert.exe for Windows
  8. You still need to install ImageMagick on Linux/MacOSX
v2.4
  1. Drag & Drop source folder onto art.exe to convert
  2. First time Setup
  3. Cleaned up the UI
  4. Removed clean-folders.exe
  5. No need to install ImageMagick
  6. Improved boot time
  7. Checks for errors before converting
  8. Available syntax & usage
v2.3
  1. Very smart clean folders EXE file (Windows Only)
  2. Switched to EXE files (Windows Only)
  3. Fixed settings.ini resetting to defaults while restarting RUN-ME.exe (Windows Only)
  4. Fixed settings.ini detection (Windows Only)
  5. Improved a lot (Windows Only)
v2.2
  1. Adapted Windows Vista/7 Environment (Windows Only)
  2. Fixed ImageMagick check on 64-bit machines (Windows Only)
  3. Fixed some errors in the batch files (Windows Only)
  4. Check for Java (Windows Only)
v2.1.1
  1. Support for Mac OS X
  2. Fixed input sub-folder detection (Windows Only)
  3. Modified settings to match each OS
  4. Switched all archived formats to: TAR
v2.1
  1. Cleaned up workspace
  2. Support for Linux/Unix
  3. Added README file for Instructions & Usage
  4. Improved clean-folders dramatically. It now depends on settings.ini. (Windows Only)
  5. Addded 64-bit support (Windows Only)
  6. Automatically detects if PC 32-bit or 64-bit (Windows Only)
v2.0.0
  1. Initial shared release

Samsung Galaxy Gio GT-S5660M | BlackBerry PlayBook
GitHub
The Following 23 Users Say Thank You to Peteragent5 For This Useful Post: [ Click to Expand ]
 
devilsking
Old
#3  
devilsking's Avatar
Recognized Themer
Thanks Meter 875
Posts: 920
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
Recognized Contributor
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 36
Posts: 132
Join Date: Sep 2011
Location: Kota Pempek
Thank's.
 
shoutokuyaki
Old
#6  
shoutokuyaki's Avatar
Senior Member
Thanks Meter 34
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 165
Posts: 510
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 4GIO

U235 kernel For Galaxy Gio


Press Thanks If I helped You !
 
Pancakes_Gio
Old
#8  
Pancakes_Gio's Avatar
Senior Member
Thanks Meter 199
Posts: 1,238
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 131
Posts: 735
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 970
Posts: 5,493
Join Date: Mar 2011
Location: Gotham
hey. with this theme would i be able to convert HDPI CM9/10 themes to MDPI?
Devices: Acer Iconia A100, LG Optimus T, Nexus One,HTC G2, HTC One, Galaxy s II, Tmobile
Please follow me on twitter. I want 1000 followers
@ _DarkKnight_1

 




Device: HTC One
ROM: None

Device: Galaxy SII T989
Rom: Jedi Mind Trick

Device: Desire Z
ROM: CM10.1

Device: Acer Iconia A100
ROM: CM10

Device: LG Optimus T, Nexus One
Status: Discontinued


 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...