Closed bijington closed 3 years ago
The padding factor is not correctly applied. It appears to grow the image rather than reducing the size.
Use the attached project with the key json below:
{ "$schema": "https://mobilebuildtools.com/schemas/v2/resourceDefinition.schema.json", "android": { "resourceType": "Mipmap", "name": "icon", "scale": 0.1875, "additionalOutputs": [ { "name": "launcher_foreground", "resourceType": "Mipmap", "scale": 0.28125, "padFactor": 1.5 }, { "name": "logo", "resourceType": "Drawable" } ] }, "iOS": { "name": "AppIcon", "background": "#ffffff", "additionalOutputs": [ { "name": "logo" } ] } }
Expect the icon to sit nicely inside the adaptive icon area for Android following these rules:
Imagine a 1024x1024px image with padFactor: 1.5, height: 100 and width: 100.
padFactor: 1.5
height: 100
width: 100
padFactor * original image size
1024 * 1.5 -> 1536
1024
100x100
Building and running Android will present the issue seen in the Actual Behavior screenshot template.zip
Actual Behavior
This is largely correct... but a couple of minor tweaks here... and to ensure this is clear.
1024 * 1.5 => 1536
Description
The padding factor is not correctly applied. It appears to grow the image rather than reducing the size.
Reproduction Steps
Use the attached project with the key json below:
Expected Behavior
Expect the icon to sit nicely inside the adaptive icon area for Android following these rules:
Imagine a 1024x1024px image with
padFactor: 1.5
,height: 100
andwidth: 100
.padFactor * original image size
. (1024 * 1.5 -> 1536
).1024
).100x100
).Actual Behavior
Reproduction App
Building and running Android will present the issue seen in the
Actual Behavior
screenshot template.zip