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

Add feature to embed pictrs in lemmy binary (fixes #2627) #2633

Merged
merged 4 commits into from Jan 20, 2023

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Dec 26, 2022

To try this, start lemmy with cargo run --features embed-pictrs and then start lemmy-ui. For now image uploads are failing with thread 'actix-rt|system:0|arbiter:0' panicked at 'No auth header for picture upload', crates/routes/src/images.rs:97:6, but that seems like a problem with lemmy-ui (using latest main branch).

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Looks good, just needs a clippy fix.

@asonix
Copy link
Collaborator

asonix commented Dec 29, 2022

make sure you test this with whatever containers you build. pict-rs isn't just a rust library, it shells out to ffmpeg, imagemagick, and exiftool, so those need to be installed and available in your path

@Nutomic
Copy link
Member Author

Nutomic commented Jan 5, 2023

Yes this will have to be added to documentation. At first I would only use it for native install because it can clearly be simplified this way.

@Nutomic Nutomic force-pushed the embed-pictrs branch 3 times, most recently from 91a3b7c to 9d15492 Compare January 16, 2023 22:09
@dessalines dessalines merged commit 1eaf2c8 into main Jan 20, 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

3 participants