redwarp / 9-patch-resizer Goto Github PK
View Code? Open in Web Editor NEWA resizer tool to automaticaly resize png files and 9 patches in several densities
License: Apache License 2.0
A resizer tool to automaticaly resize png files and 9 patches in several densities
License: Apache License 2.0
I mean replace "-" with "", remove @2x (ofter need to convert ios resources) from filename end.
In generally, remove all unsupported symbols that cause "Invalid file name: must contain only lowercase letters and digits ([a-z0-9.])" error.
I would like to use this program from a command-line (no-gui).
But I tried icons that don't need interpolation or anti-aliasing during resizing,
and they do suffer a bit compared to using 'nearest-neighbor'.
So I would like to request a nearest-neighbor resize filter option on the command line.
Right now create 'drawable' folders for each densities, It seems that 'mipmap' also need to be for launcher icon for android.
Hi guys,
thanks for this very useful tool.
Question is very simple: why the generated images has the same density? Each folder (hdpi, xhdpi, xxhdpi, ecc) should be a different density, but generated images have different size but same density, in fact images are not sharp.
I hope someone can answer.
Thanks
Giulio
Which location converted files get saved to ?
There is no way to see the converted files.
I'm using 9-patch resizer tool and it's great .
Could you please add possibility to add qualifiers to result folders names?
So I could receive folder drawable-port-xhdpi or drawable-large-xhdpi and so on.
9 patch Resizer is great, but it would be really cool if :
it would work in command line.
Line 1 in d434a2e
Hello,
9Patch Resizer is a very practical software.
However, I do not understand the density input option
Could someone explain to me the importance of varying input density?
Thank you
Can you add support for xxxhdpi?
Please add help how to compile this project and in which program to do it.
Hi, would be cool if you can use xxxhdpi as the source file.
When I provide the source image with DPI 640 (xxxhdpi), the resizer could be able to write the proper value to the resulting PNG files metadata (480 for xxhdpi, 320 for xhdpi, 240 for hdpi, 160 for mdpi, 120 for ldpi). It is just a minor thing, but it would be nice to have it written there correctly.
Thank you
//EDIT: I missed #11 - sorry for that and please close this :)
Options pane should be visible all the time. Now when I process at least one image it's gone. It'd be handy to have it either visible all the time (so I could easily change parameters during my work) or at least be able to make it visible w/o restarting the app
Nice tool I use a lot (when i finally figure out what density i gave the assets in ;))
Looking the Main class, it looks like the command line only takes a list of files.
It should be possible to specify the input density and the output densities wanted, as it happens by using the UI.
Otherwise a bit of documentation about how to use it using the command line (or maybe i didn't find it)
Tx
Sory newbie question, but how do you even run this application?
Hi,
I made some tiem ago (from and old version of your code) a mod to be able to export also for iOS devices (@2x, @3x,..). I have now made a mod that includes the following:
I would like you to comment these improvements to know if I can them adapt these features to your newest code and you are prone to accept them as merge requests.
Kind regards
sample this,I can't download ,why?
Density selections shall stay persistent - for now, each time I launch the app I need to set it all up to match my needs. Small config file would help
This is handy for me and thought I'd share it in case it is useful for someone else.
I did it following this simple tutorial here: https://youtu.be/kwdK6Dg1a_Y
Download app wrapper:
Resizer-1.4.2.app.zip
Great tool! Will it be possible to work with JPEG images too?
Right now, if I put a .JPG image as input, the generated scaled versions are all PNG
If you change the Input density to xxhdpi for example, the text in the drop down area won't change, causing it to still state: "Drop xhdpi image here".
You forgot to change the About, except the tool is just great!
First, thank you so much for the work on jpeg support!
To make this tool even more flexible and fit all needs, having the jpeg output quality configurable would be ideal.
Maybe just a settings dialog to enter what output quality you want for your jpegs.
Another thought is that most jpegs actually store the quality setting they were exported with in their metadata, we could read that and use that for the output quality. Not sure if that's a good idea, but thought it'd mention it. (Even with this, you'd probably still want an option to override it with some configurable value)
some output images blured.Some images Volume become bigger.
Hi, I was just reading through Lollipop/Nexus 6 docs and best-practice posts and saw that for the Nexus 6 (launcher-) icon, mipmap
- instead of drawable
-folders are suggested:
http://android-developers.blogspot.de/2014/10/getting-your-apps-ready-for-nexus-6-and.html
http://stackoverflow.com/questions/23935810/mipmap-drawables-for-icons
I guess a simple checkbox/switch would do the trick. What do you think? I could probably fork and do this myself if I find some time, I just wanted to pin it here first.
Love this tool. Installed it on a new laptop and it is saying "This application requires a Java Runtime Environment 1.6.0". I have 1.9 (JRE and JDK) installed on the laptop and in the path. To complicate things a bit I am having to point to the Android Studio JRE for my JAVA_HOME. Either way I believe the JRE is greater than 1.6. Probably something stupid on my side...thoughts?
Describe the solution you'd like
Resizer only works on Jpeg and PNG, not cool! It should support webp as well.
Additional context
I found this library: https://github.com/nintha/webp-imageio-core
It could be worth investigating if it can do the job.
I love this tool but it does not always work. Sometimes the files get generated and sometimes they don't. It always says "Finished" in the Resizer Dialog but more often than not the files are not in the destination folders. Am I doing something wrong?
I used this tool several times in the last year and it worked perfectly! Today I faced the problem, that droping files onto the window doesn't work anymore. What could be the problem?
Is there another way to include the files?
I have an image of resolution 1376 x 1361 with DPI of 72.
What source input density do I choose? How do I decide?
9 patch Resizer is great, but it would be really cool if :
we could have a chocolatey package. I'll be happy to create one, but I though you might want first dibs!
at the end of the day, to be able to run
cinst 9patchresizer
and then have it installed with a shortcut on the desktop would be freaking awesome.
https://chocolatey.org/
https://github.com/chocolatey/chocolatey/wiki/CreatePackages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.