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

Download a full-rez version of the thumbnail_image #76

Open
MBARIMike opened this issue Sep 30, 2021 · 10 comments
Open

Download a full-rez version of the thumbnail_image #76

MBARIMike opened this issue Sep 30, 2021 · 10 comments
Labels
original use case Translated from Use Case document

Comments

@MBARIMike
Copy link
Contributor

From the Use Case document:

View a JPG thumbnail map made from each mission’s ZTopo.grd from the query results page, and download a full-rez version.

The database already stores a 1/4 resolution version of the thumbnail map. For this Issue we just need to provide the download a full-rez version feature.

@MBARIMike MBARIMike added good first issue Good for newcomers original use case Translated from Use Case document labels Sep 30, 2021
@jbpaduan
Copy link
Collaborator

Can the thumbnail or full-rez images be forced to display in landscape if that's the orientation of the image? Landscape views now rotate 90-degrees into a portrait view.

@jbpaduan
Copy link
Collaborator

Partial fulfillment of this issue could be accomplished if the user was able to download the 1/4 resolution version stored in the database.

@MBARIMike
Copy link
Contributor Author

A lot of possibilities open up if we can mount the SeafloorMapping share onto a volume that can be exposed over https.

We'd need to add an nginx container to the deployment and figure out how to proxy it through traefik. (Boy, that's quite a bit of nerd jargon in one sentence! :-)

@MBARIMike
Copy link
Contributor Author

This blog post describes how this may be done: https://www.simplecto.com/use-traefik-with-nginx-apache-caddyserver-serve-static-files/

@MBARIMike
Copy link
Contributor Author

MBARIMike commented Feb 9, 2022

This PR makes the SeafloorMapping share available over HTTP in the debug.yml and local.yml deployments. The production.yml deployment is more challenging as traefik is used as the proxy server and I'm struggling to figure out how configure a route to the nginx static file server. The online documentation and blog posts have been incomplete and somewhat scattershot, and quite frustrating for me to get working.

I'm considering removing traefik from production.yml (it was put there by cookiecutter-django, primarily because of the ease of using letsencrypt - which we aren't using anyway) and using nginx for both proxy and static file serving. This also gives the option of replacing S3 with on-premises media file storage, simplifying access for VPN users.

@MBARIMike
Copy link
Contributor Author

Almost done with this and I've decided that this was not a good first issue to tackle.

@MBARIMike
Copy link
Contributor Author

The last PR has been pulled to production. There is now a new entry under the thumbnail image in the detail views for Missions and Compilations (the thumbnail image on the page is also hyperlinked to the full rez image):

View full resolution image: URL to the image

Note that most all of the Compilation images are .tif files which will be downloaded rather than being rendered in the browser.

@jbpaduan
Copy link
Collaborator

Re previous comment, somehow the .tif files are being rendered in a browser, as on
https://smdb.shore.mbari.org/compilations/2022-southerngoc-figureslass-southpescaderovents_mauv_topo1m/

@jbpaduan
Copy link
Collaborator

This issue can be closed.

@jbpaduan jbpaduan reopened this May 31, 2024
@jbpaduan
Copy link
Collaborator

Hah! I appear to be able to close issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
original use case Translated from Use Case document
Projects
None yet
Development

No branches or pull requests

2 participants