Fix margin and background processing order#23
Open
devin-ai-integration[bot] wants to merge 3 commits intomainfrom
Open
Fix margin and background processing order#23devin-ai-integration[bot] wants to merge 3 commits intomainfrom
devin-ai-integration[bot] wants to merge 3 commits intomainfrom
Conversation
…ore margin - Reorder operations in processImage method to apply background before margin - Update applyMargin method signature to accept background parameter - Apply same changes to ICO generation path in generateMultiSizeIcoFile - Use parseBackgroundColor utility for background parameter passing - Maintain transparent background as default when no background specified Fixes MAN8-4791 Co-Authored-By: Louis Mandelstam <louis@man8.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
…der fix - Add changelog entry for margin and background processing order fix - Update README transformation order documentation to reflect correct sequence - Background now correctly documented as applied before margin Co-Authored-By: Louis Mandelstam <louis@man8.com>
- Update documentation to reflect that margins now use specified background colour - Clarify that margins are only transparent when no background is specified - Remove outdated claims that margins are always transparent Co-Authored-By: Louis Mandelstam <louis@man8.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix margin and background processing order
Issue Description
When both
marginandbackgroundare specified in a variant configuration, the margin areas remain transparent instead of using the specified background color. This happens because the margin is applied before the background in the processing pipeline.Changes Made
1. Reordered operations in
processImagemethod2. Updated
applyMarginmethod signaturebackgroundparameter to accept background colorextend()call with the background parameter3. Applied same changes to ICO generation path
generateMultiSizeIcoFilemethod to follow same patternImplementation Details
parseBackgroundColorutilityTesting
Fixes MAN8-4791
Link to Devin run: https://app.devin.ai/sessions/3b8769218ed24ce79679a8da9b8b7a16
Requested by: Louis Mandelstam (louis@man8.com)