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

Blur image previews #68

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Blur image previews #68

wants to merge 22 commits into from

Conversation

Sheraff
Copy link
Owner

@Sheraff Sheraff commented May 7, 2023

compute 10x10 blurred base64 preview of images (at the same time when we compute the palette) and use it as a background on <img> tags

Requires

  • npm run db to add column in Image table
  • a call to /api/reset-palettes to compute the previews

Not merged yet because

  • might want to calibrate the creation of blurs a little (try a few ≠ sizes, try a specific image format, ...)
  • it adds a pretty big column to Image that gets returned by many procedures
  • might want to try using a div behind the img instead of the img itself for applying the background so it doesn't flash to no-background when the image file is loaded but not decoded yet

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

1 participant