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

Adding blurhash to image_details. #5227

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Adding blurhash to image_details. #5227

wants to merge 15 commits into from

Conversation

dessalines
Copy link
Member

@dessalines dessalines commented Nov 25, 2024

Leaving this as draft until a new version of pictrs is released, with blurhash, and tests can be added.

The actual response from pictrs is blurhash: String , but we should leave this as an option for at least a few versions, in order to not break image details running older pictrs versions.

@Nutomic
Copy link
Member

Nutomic commented Jan 10, 2025

This is now available in pictrs v0.5.17-pre.8

@dessalines dessalines marked this pull request as ready for review January 10, 2025 18:01
@dessalines
Copy link
Member Author

dessalines commented Jan 10, 2025

K I updated to that pictrs, and tested this manually. Its correctly setting the blurhash DB column for uploaded images.

I'm not sure whether to have a default blurhash, or just leave it as is with the blurhash column optional. Proxied images can't get blurhashes anyway, only uploaded ones can, so its probably fine to leave optional.

-- Add a blurhash column for image_details
ALTER TABLE image_details
-- Supposed to be 20-30 chars, use 50 to be safe
-- TODO this should be made not null for future versions of pictrs
Copy link
Member

@Nutomic Nutomic Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You said this isnt possible for proxied images, then remove the comment (and in request.rs too).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, I'll do that now, and check out the failures.

Copy link
Member

@Nutomic Nutomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but there are test failures.

@dessalines
Copy link
Member Author

Tests passed okay locally, so hopefully it was just an intermittent CI error.

@dessalines dessalines enabled auto-merge (squash) January 14, 2025 15:48
@Nutomic
Copy link
Member

Nutomic commented Jan 16, 2025

Nope it keeps failing consistently. Restarted it again just in case.

@dessalines
Copy link
Member Author

Ugh, this one's frustrating. I've run it locally a ton of times, and can't replicate the CI errors. The only thing I've changed is the pictrs version.

@Nutomic
Copy link
Member

Nutomic commented Jan 17, 2025

Seems like pictrs is throwing an error but its not getting logged properly: "ERROR pict_rs::middleware::log: server error".

Try removing all the CI steps except build and api test, then have it run only a single image test only, and ensure that pictrs output is visible in ci.

@dessalines dessalines marked this pull request as draft January 24, 2025 03:19
auto-merge was automatically disabled January 24, 2025 03:19

Pull request was converted to draft

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.

Include Blurhash in ImageDetails
2 participants