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

Option to download original, full-res images #21

Merged
merged 3 commits into from
May 3, 2022

Conversation

philwilei
Copy link
Contributor

I implemented an option to make the original image files downloadable at full resolution:

Screenshot 2022-05-03 172545

Screenshot 2022-05-03 172443

I created this to be able to distribute photos I took at a family event to all the participants. This way everyone could easily choose the photos they liked and download them at original quality, which saved me from having to transfer large files to individuals one by one.

This feature might also appeal to professional photographers looking to host their own delivery platform so they don't have to rely on paid services like Pixieset.

The feature is off by default and can be enabled by setting the ALLOW_ORIGINAL_DOWNLOAD environment variable to 1. In the gallery view, a download button will show up in the bottom right corner of a hovered image. In single-photo view, the download button is permanently visible in the top right corner.

Maybe this is outside the scope of this project (in which case, I don't mind if it doesn't get merged), but I thought that others might find this useful too.

Philipp Eitel added 3 commits March 14, 2022 20:34
By setting ALLOW_ORIGINAL_DOWNLOAD to 1, the original files will not be
deleted after creating the scaled versions. This is the foundation for
making the full size images downloadable.
By default, ALLOW_ORIGINAL_DOWNLOAD is 0 and original images will be
deleted while Jekyll does its thing.
In thumbnail view, the download button will appear in the lower right
corner of the image when hovering it.
In fullscreen view, the button is permanently displayed in the upper
right corner of the screen.
On very narrow devices (phones) the button is permanently visible in
thumbnail view and nonexistent in full screen view.
Update the Docker Compose file to forward the ALLOW_ORIGINAL_DOWNLOAD
setting to the container
@waschinski waschinski merged commit 913b42f into waschinski:master May 3, 2022
@waschinski
Copy link
Owner

That's a nice feature, Philipp, thank you very much for the PR!

@philwilei philwilei deleted the publish_originals branch May 4, 2022 07:19
pull bot pushed a commit to OrangeCatSleepless/photo-stream that referenced this pull request Mar 18, 2023
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.

None yet

2 participants