Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
redwarp committed Aug 12, 2014
2 parents 0717ca2 + e06aca3 commit fdce14c
Show file tree
Hide file tree
Showing 15 changed files with 178 additions and 257 deletions.
7 changes: 7 additions & 0 deletions .idea/ant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

201 changes: 0 additions & 201 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ![Tools](https://github.com/redwarp/9-Patch-Resizer/blob/develop/res/img/icon_32.png) 9-Patch-Resizer

A resizer tool to automaticaly resize png files and 9 patches in several densities (previously hosted on https://code.google.com/p/9patch-resizer/)

## Download

To get the latest build (.jar or .exe file), check the release page on the github project: https://github.com/redwarp/9-Patch-Resizer/releases

The .exe file is just a wrapper around the executable .jar file, use it if you don't feel comfortable with a java archive ^_^

## What is it exactly?

Let's face it : juggling with densities for Android is a bit of a pain, especially when dealing with 9 patch png.

And then comes this tool, that takes a xhdpi PNG file, or 9.png file, and generates ldpi, mdpi and hdpi png files automatically.

As simple as drag and drop can get.

And here is the [changelog](https://github.com/redwarp/9-Patch-Resizer/wiki/Changelog)

Current version : *1.3.1*

You're using 9patch resizer for your apps ? Don't hesitate and leave me a message!

## Links

* Images and stuff found on http://www.clker.com/ (The online royalty free public domain clip art)
* Images are downsized using an optimized incremental scaling algorithm proposed by Chris Campbell (whoever that is) - http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

## Roadmap

- [ ] Command line support
- [ ] A few optimisations
- [x] Options to set the input density (if people wan't to downsize from hdpi and not from xdpi for instance)

## Anyway...

If for some weird reasons, some of your PNG files aren't resized properly, don't hesitate to send them to me, so that I can investigate !

I hope it'll prove as useful to you as it is useful to me. If you like it, and have too much cash in you hands, don't hesitate to donate : I could use a few beers.

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=UCXCHNNSUP8G4&lc=US&item_name=Elder%20Sign&item_number=Resizer&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif"/></a>
2 changes: 1 addition & 1 deletion Resizer.eml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<component jdk="1.6" jdk_type="JavaSDK">
<component inheritJdk="true">
<exclude-output/>
<contentEntry url="file://$MODULE_DIR$"/>
<levels>
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</java>
</target>
<target name="tojar">
<echo message="Creating jar"></echo>
<echo message="Creating jar"/>
<jar basedir="${bin}" destfile="Resizer_raw.jar">
<manifest>
<attribute name="Main-Class" value="net.redwarp.tool.resizer.Main"/>
Expand Down
20 changes: 11 additions & 9 deletions launch4j_config.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>C:\Users\Akaiwarp\workspace\Resizer\Resizer_1.3.1.jar</jar>
<outfile>C:\Users\Akaiwarp\workspace\Resizer\Resizer_1.3.1.exe</outfile>
<jar>C:\Users\Redwarp\workspace\Resizer\Resizer_proguard.jar</jar>
<outfile>C:\Users\Redwarp\workspace\Resizer\Resizer_1.3.2.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon>C:\Users\Akaiwarp\workspace\Resizer\extra\icon_512.ico</icon>
<icon>C:\Users\Redwarp\workspace\Resizer\extra\icon_512.ico</icon>
<singleInstance>
<mutexName>resizer</mutexName>
<windowTitle></windowTitle>
</singleInstance>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<minVersion>1.6.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>1.3.1.0</fileVersion>
<txtFileVersion>1.3.1</txtFileVersion>
<fileVersion>1.3.2.0</fileVersion>
<txtFileVersion>1.3.2</txtFileVersion>
<fileDescription>9Patch Resizer</fileDescription>
<copyright>Redwarp - 2013</copyright>
<productVersion>1.3.1.0</productVersion>
<txtProductVersion>1.3.1</txtProductVersion>
<copyright>Redwarp - 2014</copyright>
<productVersion>1.3.2.0</productVersion>
<txtProductVersion>1.3.2</txtProductVersion>
<productName>9Patch Resizer</productName>
<companyName></companyName>
<internalName>Resizer</internalName>
Expand Down
8 changes: 5 additions & 3 deletions res/locale/Strings.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Created by JInto - www.guh-software.de
#Sat Jun 09 15:23:03 CEST 2012
about_text=Resizer is a simple resizer tool for Android.\r\nIt takes a PNG image as input, and automatically renerates folders with 4 densities \: ldpi, mdpi, hdpi and xhdpi.\r\nWhat's more \: Resizer work on 9 patches as well \! Because, let's face it, it's a pain to have to do it by hand.\r\nAll icons were found on http\://www.clker.com/\r\n\r\n(c) Copyright Redwarp 2013. All rights reserved.
about_text=Resizer is a simple resizer tool for Android.\nIt takes a PNG image as input, and automatically renerates folders with several densities \: ldpi, mdpi, hdpi, xhdpi, xxhdpi...\nWhat's more \: Resizer work on 9 patches as well \! Because, let's face it, it's a pain to have to do it by hand.\nAll icons were found on http\://www.clker.com/\n\n(c) Copyright Redwarp 2014. All rights reserved.
app_name=9Patch Resizer
column_name=Image name
column_status=Status
Expand All @@ -15,6 +15,8 @@ status_error=Error
status_finished=Finished \!
status_in_progress=In progress...
status_pending=Pending...
xhdpi=Drop xhdpi image here (PNG format, nine patch included)
xhdpi=Drop %s image here (PNG format, nine patch included)
input_density=Input density:
output_density=Output density:
output_density=Output density:
save=Save
save_tooltip=Hit the save button to keep this settings the next time you launch 9Patch Resizer
8 changes: 5 additions & 3 deletions res/locale/Strings_fr.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Created by JInto - www.guh-software.de
#Sat Jun 09 15:23:03 CEST 2012
about_text=Resizer est un outil de redimensionnement pour Android.\r\nIl g\u00E9n\u00E8re automatiquement 4 dossiers de densit\u00E9 \: ldpi, mdpi, hdpi and xhdpi.\r\nMais le plus \: Resizer fonctionne sur les 9 patches \! Il faut l'avouer, c'est p\u00EAte b**ne de le faire \u00E0 la main.\r\nLes icons proviennent de http\://www.clker.com/\r\n\r\n(c) Copyright Redwarp 2013. Tous droits r\u00E9serv\u00E9s.
about_text=Resizer est un outil de redimensionnement pour Android.\nIl g�n�re automatiquement plusieurs dossiers de densit \: ldpi, mdpi, hdpi, xhdpi, xxhdpi...\nMais le plus important \: Resizer fonctionne sur les 9 patches \! Il faut l'avouer, c'est p\u00EAte b**ne de le faire \u00E0 la main.\nLes icons proviennent de http\://www.clker.com/\n\n(c) Copyright Redwarp 2014. Tous droits r\u00E9serv\u00E9s.
app_name=9Patch Resizer
column_name=Nom de l'image
column_status=Status
Expand All @@ -12,9 +12,11 @@ menu_item_about=\u00C0 propos de Resizer
menu_item_clear=Effacer
menu_item_clear_desc=Efface l'historique de conversion
status_error=Erreur
status_finished=Termin\u00E9 \!
status_finished=Termin \!
status_in_progress=En cours...
status_pending=En attente...
xhdpi=D\u00E9posez des images au format PNG (9 patch inclus)
xhdpi=D\u00E9posez des images %s au format PNG (9 patch inclus)
input_density=Densit\u00E9 d'entr\u00E9e :
output_density=Densit\u00E9s de sortie :
save=Sauvegarder
save_tooltip=Sauvegardez les réglages courants pour les réutiliser la prochaine fois que vous lancerez 9Patch Resizer
Loading

0 comments on commit fdce14c

Please sign in to comment.