-
Notifications
You must be signed in to change notification settings - Fork 209
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
Minify Module Image Not Showing Fix #1422
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1422 +/- ##
=======================================
Coverage 66.36% 66.36%
=======================================
Files 125 125
Lines 2572 2572
Branches 406 406
=======================================
Hits 1707 1707
Misses 865 865 |
I just realized that the module is not working correctly.... |
@@ -76,7 +78,7 @@ module.exports = function MinifyImage(options, UI) { | |||
}); | |||
var destPath = __dirname + '/results/test.' + input.format; | |||
var data = base64Img.base64Sync(destPath); | |||
output(data, input.format); | |||
output(destPath, data, input.format); |
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.
Why do we do this in the browser? Why is it even required? Can't we just output the image? Was it used for debugging and was left out?
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 is used for command line interface.
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.
But that part is handled by the sequencer core library code anyway.
Fixes #1420 (<=== Replace
0000
with the Issue Number)Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!