chore: move image stuff to axum-image
This commit is contained in:
parent
dbed2b2457
commit
e8cc541f45
15 changed files with 48 additions and 244 deletions
|
@ -16,7 +16,6 @@ use tetratto_core::model::{
|
|||
};
|
||||
use crate::{
|
||||
check_user_blocked_or_private, get_user_from_token,
|
||||
image::{save_webp_buffer, JsonMultipart},
|
||||
routes::{
|
||||
api::v1::{
|
||||
CreatePost, CreateRepost, UpdatePostContent, UpdatePostContext, UpdatePostIsOpen,
|
||||
|
@ -26,6 +25,7 @@ use crate::{
|
|||
},
|
||||
State,
|
||||
};
|
||||
use axum_image::{encode::save_webp_buffer, extract::JsonMultipart};
|
||||
|
||||
// maximum file dimensions: 2048x2048px (4 MiB)
|
||||
pub const MAXIMUM_FILE_SIZE: usize = 4194304;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue