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

using blurhash for obscuring sensitive image #342

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

asdfzdfj
Copy link
Contributor

replaced blur filter usage over sensitive image to obscure the image with blurhash image, using hidden checkbox + css to control visibility and buttons to switch between show and hide sensitive image

for image attachment in post and comments, hide the sensitive image by putting blurhash image over along with the show button

for entry thumbnail, it works a bit differently:

  • the sensitive image is hidden by hiding the main image and show existing blurhash background image instead
  • due to space constraints, the show/hide button is icons only, additionally when in mobile layout and compact view, the hide button will not be shown after the image is revealed

currently looks something like this:

location hidden revealed
post + comments hidden revealed
entry thumbnails hidden revealed
entry thumbnail (mobile+compact) hidden revealed

@asdfzdfj asdfzdfj added the please review I want to be sure what I did won't cause problems label Dec 11, 2023
melroy89
melroy89 previously approved these changes Dec 11, 2023
@melroy89
Copy link
Member

Hopefully this is the last branch that is outside of this repo, since it really makes it much harder to test if I want to switch branches.

replaced blur filter usage over sensitive image to obscure the image
with blurhash image, using hidden checkbox + css to control visibility
and buttons to switch between show and hide sensitive image

for image attachment in post and comments, hide the sensitive image
by putting blurhash image over along with the show button

for entry thumbnail, it works a bit differently:
- the sensitive image is hidden by hiding the main image and show
  existing blurhash background image instead
- due to space constraints, the show/hide button is icons only,
  additionally when in mobile layout and compact view, the hide button
  will not be shown after the image is revealed
- attach lightbox to image/article entries but not for link/video entries
- link/video entries should also have `rel` set
@asdfzdfj asdfzdfj merged commit e91971c into MbinOrg:main Dec 13, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request please review I want to be sure what I did won't cause problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants