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

Feature/kahuna download from api #29

Merged
merged 5 commits into from
Oct 3, 2019

Conversation

jamie-pitts
Copy link

What does this change?

The download (+ bulk download) button in the client will now download images via the api download link. This allows for metrics to be gathered about which images have been downloaded and who downloaded which images.

Additionally a new endpoint has been added to the api which allows for optimised images to be downloaded in a similar way to the original images (this also redirects you to imgops).

As the download link now calls the API, the users auth cookie needs to be present, and so the withCredentials flag was added. This caused a slight problem with nginx as it had a wildcard for the origin, so this was fixed by adding a couple of headers you will see in the PR - I don't think this should have any adverse effects but not an expert on this!

@paperboyo
Copy link

allows for optimised images to be downloaded

Just a friendly reminder that these are currently sometimes of unsatisfactory quality: bloated (pt. 3) or bad colour (when the source is not sRGB).

@jamie-pitts
Copy link
Author

allows for optimised images to be downloaded

Just a friendly reminder that these are currently sometimes of unsatisfactory quality: bloated (pt. 3) or bad colour (when the source is not sRGB).

Yep its more that there is a 'download low res' button that's currently available, and we just want to be sure who is downloading what - not suggesting people use this, but good to know if it is used by people

@jamie-pitts jamie-pitts merged commit b212202 into bbc Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants