Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Preserve qualifiers #14

Open
paour opened this issue Apr 2, 2014 · 2 comments
Open

Preserve qualifiers #14

paour opened this issue Apr 2, 2014 · 2 comments

Comments

@paour
Copy link

paour commented Apr 2, 2014

If I'm processing images for a specific platform version for example, I want the resized versions to be placed in the appropriate folder.

At the moment, the command aaresize -d xxhdpi res/drawable-xxhdpi-v9/*.png creates resized versions in res/drawable-xhdpi instead of res/drawable-xhdpi-v9.

@twaddington
Copy link
Owner

That's good feedback, thanks. I'll look into this.

@paour
Copy link
Author

paour commented Apr 2, 2014

Looks like you're going to have to parse the stack of qualifiers in the source path, probably in get_out_for_density() (in the case where the source file is in a res/drawable directory).

As long as you're doing that, perhaps you can dynamically figure out the source density, so that the command-line doesn't have to specify it (again, only for those cases where the source file is within a drawable directory).

Thanks for considering this. Very useful script by the way, thank you for providing it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants