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

Minify Module Image Not Showing Fix #1422

Closed
wants to merge 5 commits into from
Closed

Minify Module Image Not Showing Fix #1422

wants to merge 5 commits into from

Conversation

root00198
Copy link
Member

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!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If 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!

@codecov
Copy link

codecov bot commented Jan 4, 2020

Codecov Report

Merging #1422 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1422   +/-   ##
=======================================
  Coverage   66.36%   66.36%           
=======================================
  Files         125      125           
  Lines        2572     2572           
  Branches      406      406           
=======================================
  Hits         1707     1707           
  Misses        865      865

@root00198
Copy link
Member Author

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);
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

@root00198 root00198 mentioned this pull request Jan 16, 2020
5 tasks
@root00198 root00198 closed this Jan 16, 2020
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.

Minify-Image module not working
2 participants