-
Notifications
You must be signed in to change notification settings - Fork 5
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
ASSETS-23937 - Support setting a color as background color #214
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #214 +/- ##
==========================================
- Coverage 57.99% 56.95% -1.05%
==========================================
Files 12 12
Lines 819 834 +15
==========================================
Hits 475 475
- Misses 344 359 +15 ☔ View full report in Codecov by Sentry. |
@@ -15,7 +15,7 @@ jobs: | |||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |||
strategy: | |||
matrix: | |||
node-version: [14.16.1, 14.17] | |||
node-version: [14.17] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping the oldest version.
I didn't update to a newer one because currently it breaks the test pipeline, since dependency hell in #213.
@@ -0,0 +1,4 @@ | |||
{ | |||
"fmt": "png", | |||
"pdfbgcolor": "#0EF" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests mimics adding a color as a background to any image with a transparent background
|
||
function handleTransparency(img, instructions) { | ||
if(instructions.pdfbgcolor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we expect the supported format to be png
then the condition should specify it.
if(instructions.pdfbgcolor && instructions.fmt === 'png') {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at that point we'd support anything, since the whole imagemagick command will do the conversion. It's the input we expect to be PNG.
(Failing dependent tests expected, since the failing worker for PDF needs some adaptation to avoid double-processing) |
🎉 This PR is included in version 4.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes # (issue)
pdfbgcolor
;Types of changes
Checklist: