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

Edge Detect Fixed! #1629

Merged
merged 4 commits into from
Jul 7, 2020
Merged

Edge Detect Fixed! #1629

merged 4 commits into from
Jul 7, 2020

Conversation

harshkhandeparkar
Copy link
Member

Fixes #1576 (<=== Replace 0000 with the Issue Number)

This was the simplest fix. Just had to change a global variable to a local one.

New Output:
Screenshot from 2020-02-15 21-18-28

Now it doesn't make a difference if the image is loaded first and then edge-detect is added or the other way around.

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 run test-all
  • 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!

@harshkhandeparkar
Copy link
Member Author

@jywarren @publiclab/is-reviewers

@harshkhandeparkar
Copy link
Member Author

The solution was a single line change but it took me 2 hrs to figure it out!
Also, why is Travis failing?

@harshkhandeparkar
Copy link
Member Author

Ok found that error too. Fixing it soon.
It seems Edge Detect was broken for GIFs earlier. Just compare these outputs.

OLD:
edge-detect

NEW:
edge-detect (1)

@harshkhandeparkar
Copy link
Member Author

Fixed that too.

@harshkhandeparkar harshkhandeparkar requested review from jywarren and a team February 15, 2020 16:13
@harshkhandeparkar
Copy link
Member Author

The tests had passed locally 😕

@harshkhandeparkar
Copy link
Member Author

I don't think the error was caused by my changes. Also, it is only failing for node 8.

@rishabhshuklax
Copy link
Member

@harshkhandeparkar try restarting the build once again

Copy link
Member

@rishabhshuklax rishabhshuklax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! 🎉

@harshkhandeparkar
Copy link
Member Author

harshkhandeparkar commented Feb 18, 2020 via email

@codecov
Copy link

codecov bot commented Feb 18, 2020

Codecov Report

Merging #1629 into main will increase coverage by 10.29%.
The diff coverage is 63.90%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1629       +/-   ##
===========================================
+ Coverage   55.11%   65.41%   +10.29%     
===========================================
  Files         117      132       +15     
  Lines        2344     2741      +397     
  Branches      360      438       +78     
===========================================
+ Hits         1292     1793      +501     
+ Misses       1052      948      -104     
Impacted Files Coverage Δ
examples/lib/scopeQuery.js 18.51% <ø> (ø)
src/Modules.js 100.00% <ø> (ø)
src/modules/WebglDistort/Module.js 2.29% <0.00%> (ø)
src/ui/SetInputStep.js 12.90% <0.00%> (-1.39%) ⬇️
src/modules/ColorHalftone/Module.js 3.63% <3.63%> (ø)
examples/lib/defaultHtmlStepUi.js 11.35% <4.08%> (-0.85%) ⬇️
examples/lib/intermediateHtmlStepUi.js 11.11% <5.55%> (+0.94%) ⬆️
examples/lib/insertPreview.js 13.15% <20.00%> (-0.36%) ⬇️
src/util/getImageDimensions.js 20.00% <20.00%> (ø)
src/util/isGif.js 20.00% <20.00%> (ø)
... and 100 more

@harshkhandeparkar
Copy link
Member Author

Passed!

@gitpod-io
Copy link

gitpod-io bot commented Jul 7, 2020

@jywarren
Copy link
Member

jywarren commented Jul 7, 2020

This looks great, and was easy to test out in GitPod! https://gitpod.io/#https://github.com/publiclab/image-sequencer/pull/1629

image

Confirmed! Thank you!!!

@jywarren jywarren merged commit eb38155 into publiclab:main Jul 7, 2020
@harshkhandeparkar
Copy link
Member Author

Ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edge detect is not working correctly
4 participants