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

Add webp decoder option to handle the background color in ANIM chunk #2547

Merged
merged 7 commits into from Oct 13, 2023

Conversation

brianpopow
Copy link
Collaborator

@brianpopow brianpopow commented Oct 9, 2023

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Adds a flag to decide how to handle the background color Animation Chunk.
The specification is vague on how to handle the background color of the animation chunk.
This option let's the user choose how to deal with it.

Related Issue: #2528

Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far, hopefully we get permission to use the image soon.

src/ImageSharp/Formats/Webp/BackgroundColorHandling.cs Outdated Show resolved Hide resolved
brianpopow and others added 2 commits October 12, 2023 20:10
Co-authored-by: James Jackson-South <james_south@hotmail.com>
@brianpopow brianpopow changed the title WIP: Add webp decoder option to handle the background color in ANIM chunk Add webp decoder option to handle the background color in ANIM chunk Oct 12, 2023
@@ -677,6 +677,7 @@ public static class Lossy
public const string WithXmp = "Webp/xmp_lossy.webp";
public const string BikeSmall = "Webp/bike_lossy_small.webp";
public const string Animated = "Webp/leo_animated_lossy.webp";
public const string AnimatedIssue2528 = "Webp/issues/issue2528.webp";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe fa4febf has to be reverted now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think you are right. We should squash commits when merging this, because of the back and forth here

Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks!

@JimBobSquarePants JimBobSquarePants merged commit c5eed0e into main Oct 13, 2023
8 checks passed
@JimBobSquarePants JimBobSquarePants deleted the bp/animWebpBackground branch October 13, 2023 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants