Skip to content

Option for custom output size/resolution and file path #61

@friesenkiwi

Description

@friesenkiwi

Hi and thank you for your great plugin!
We recently included it to the https://github.com/AnySoftKeyboard/LanguagePack template to make it easier for contributors to include a custom ic_launcher (the base icon plus a flag for the language) by using the svgmask function.
For release in the Play Store, we need an even bigger (512x512) version than xxxhdpi and also in a different directory.

So it would be great, if one could specify a custom output size, kinda like this:

task svgToDrawablePng(type: SvgDrawableTask) {
    from = files('src/main/svg-png')
    to = file('src/main/play/en-US/listing/icon')
    targetedDensities = ['512x512']
    outputFormat = 'PNG'
    outputType = 'custom'
    svgMaskFiles = files('src/main/svg-png/mask')
    svgMaskResourceFiles = files('src/main/svg-png/mask/svg')
}

What do you think?

Cheers in advance for considering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions