-
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
Make demo images click-to-download #210
Comments
GitMate.io thinks possibly related issues are #3 (CORS Image error on GitHub hosted demos), #4 (demo of image processing using leaflet map tiles), #148 (Create demo bookmarklet code for inverting images on a page), #5 (image cropping module), and #140 (Make demo display corresponding commandline syntax for current sequence). |
Could I work on this, or it is first-timers-only? I had one small previous contribution. |
@marzann welcome to the community😊 |
Yeah that would be better😁✌️ |
Tysm. I am having trouble showing website on localhost via npm or grunt. What is the preferred way of doing that? |
@marzan actually we do not host the website on a server in grunt(nice pointing It out, I'll open an issue for this) so for now you should start a simple http-server in the project folder |
@tech4GT, thank you! This worked like a charm, so now I can work on the issue, and test it. |
Solved, thank you @marzann !!! If you're interested in tackling another one, we'd be happy to help you find something interesting!! |
@jywarren, thank you. :) I will look over the open issues. Also, if you could recommend a new contributor issue, that would be great. |
You can see the cli syntax in the documentation,😄 |
You know what would be cool, a button that says view cli command and it alerts the user with the syntax when pressed. Excited!! |
I will look this over, thank you for the suggestion. :) |
@tech4GT, could you give me more details for #140? |
Actually I was thinking maybe we can incrementally build this after each step and keep on adding into it |
For example if I apply invert then I'll get the button next to inverted image and then I apply green channel so next to final image I'll get the button which gives the syntax for the whole sequence before it which is ivert then green channel |
@marzann does that make sense? |
@tech4GT, yes it does make sense. |
Yeah, I think we can modify the html that gets generated by sequencer and add the button there and then use js to set its js to alert the cli syntax on getting clicked, how does that sound? |
That sounds good. Could I ask for more pointers, similar to the way they were given in #210 (top of page)? |
@marzann sorry for this but jeff is actually refactoring the code in demo.js so I think we should get back to this once that’s done so that we don’t break anything in the process. I apologise if you had already started working on this!! |
Thank you for the heads up. If after the refactoring this issue is still open, let pick it up from here. |
That sounds good. Thank you both! |
This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself!
Images on the demo should be downloadable by clicking on them:
https://publiclab.github.io/image-sequencer/examples/#steps=ndvi-red,segmented-colormap
That means wrapping this line in an, an
<a>
withtarget="_blank"
so they open in a new window.image-sequencer/examples/demo.js
Line 43 in d887f5e
and then adding below this line to update the
href
of the<a>
element:image-sequencer/examples/demo.js
Line 118 in d887f5e
The text was updated successfully, but these errors were encountered: