-
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
Fix minify Module #1512
Fix minify Module #1512
Conversation
@publiclab/is-reviewers please review this.
|
Codecov Report
@@ Coverage Diff @@
## main #1512 +/- ##
=========================================
+ Coverage 66.79% 66.8% +0.01%
=========================================
Files 129 129
Lines 2671 2672 +1
Branches 430 430
=========================================
+ Hits 1784 1785 +1
Misses 887 887
|
The thing was that, this module is not minifying the image... If you compare input image and output image, they both are same. |
That's what this PR fixes. |
Check this PR |
Why doesn't this module use pixel manipulation? |
This uses compressorjs in browser environment for minifying image so we don't need to use pixel manipulation. |
Can it minify GIFs? |
It doesnt use compressorjs in node env because our current code uses DOM elements like Blob, atob and even if we import them from
|
No, I have no idea about what that error means. |
No, It just gives first frame as output image, i'm searching for an alternative |
As of now it can just minimize |
Nope. |
Now this works in NodeJs too! |
Thank you! This is great!!! |
Fixes #1420
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!