dansiegel / dansiegel/Mobile.BuildTools

Watermark image is not scaled correctly

Open
#293 6 comments 0 reactions 1 assignee Claimed by @bijington View on GitHub
Dominant language
C#
Stars
224
Forks
28
PR merge metrics
No merged PRs in 30d

Description

# Description

When applying a watermark `sourceFile` to an image the scaling is not correctly applied to the varying output sizes (see below).

![Screenshot 2021-11-02 at 22 01 21](https://user-images.githubusercontent.com/17139988/139959569-fe004e0a-9067-4945-b438-6195729177bf.png)

## Reproduction Steps

Steps to reproduce the behavior:
1. Configure a set of icons as per: https://mobilebuildtools.com/images/configuring-images/#watermarking-images
2. Build and check the `obj` folders
3. See error

## Expected Behavior

The watermark image should be stretched/shrunk to correctly fit the whole output icon.

## Actual Behavior

As can be seen in the screenshot the smaller icon sizes result in a smaller watermark.

## Environment

- OS: Windows 10
- IDE: VS2019
- BuildTools Version: 2.0.245
- IDE Version: 16.10.2
- Build Target Framework: netstandard2.0, Xamarin.iOS, Xamarin.Android

## Reproduction App

Please include a sample app that reproduces the issue and/or a binlog. Failure to reproduce either of these may lead to the issue being closed or ignored.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.