Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image padding corrections #249

Merged
merged 1 commit into from
Jun 27, 2021

Conversation

bijington
Copy link
Contributor

- padding is applied on top of the original image size so that any padding above 1 results in actual padding being applied around the image
@bijington
Copy link
Contributor Author

Result in this beauty being generated using the following:

var image = new OutputImage
{
    Height = 0,
    Width = 0,
    InputFile = Path.Combine(TestConstants.ImageDirectory, "logo.svg"),
    RequiresBackgroundColor = false,
    Scale = 1.0,
    ShouldBeVisible = true,
    Watermark = null,
    BackgroundColor = "Red",
    PaddingColor = "Yellow",
    PaddingFactor = 1.5
};

image

@dansiegel dansiegel merged commit f9c2196 into dansiegel:master Jun 27, 2021
@dansiegel dansiegel added this to the v2.0 milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android padding factor appears to scale incorrectly
2 participants