-
Notifications
You must be signed in to change notification settings - Fork 21
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
Screenshot #136
Comments
If you go to higlass.io/app, click on the view config menu (the little cog wheel in the grey header), and select export as link, you'll get a link that looks like the following: http://higlass.io/l/?d=cgs4_5zYQR-hOM4s2SixMw This link is resolved in the server to a redirect page which contains some metadata for showing a thumbnail when pasted in Slack or Twitter. You can see this in action by running:
Buried within all the metadata of the returned page is line that looks like this:
The link there will call the The rendering is a little messed up due to the WebGL drivers on the instance we're using to host higlass.io but you can, in principle see what is happening. So in short, that method is used to generate a screenshot of higlass loading a viewconf with the uuid specified in the url http://higlass.io/thumbnail/?d= Does that help? |
Any idea why uploaded data would act any differently in that thumbnail call than the data present on startup? I'm able to get the image properly, but any from data I upload create a screenshot with either a blank where there heatmap should be (it is visible in the app), or just shows the world "loading", while the startup data works fine |
ping @pkerpedjiev |
How are you calling the You have to have entire higlass stack (server and webpage) running for it to work. You can see which URL the thumbnail endpoint calls here: higlass-server/website/views.py Line 95 in 8e38810
|
Hmm, that is strange. How many workers are you running the Docker with? One potential reason for this occurring is that you're issuing one request to for the thumbnail and this occupies the server so that your data requests can't get through until something times out. Maybe try building the Docker container with |
4, and I'm pulling the image and starting it from dockerhub (new version, not your original one), not building the new image locally each time |
For clarification, the only real edits made on the new version are a different unpkg file for the interface, and the modification of that view button |
Rebuilding with -w 4 created the same image as above, with a blank viewport |
Ohhhh, I just tried this locally and it didn't work either. It's because the You can try replacing |
I have been trying, and failing to figure out where this is used in either the website or on a running instance.
higlass-server/website/views.py
Line 131 in a2c7003
I want to use the same python method of screenshots, since the js one from hglib.js won't allow files to be generated outside of the downloads folder for security reasons.
Could you please point me in the right direction?
Thanks!
The text was updated successfully, but these errors were encountered: