diff --git a/crates/g3-core/src/tools/file_ops.rs b/crates/g3-core/src/tools/file_ops.rs index 5eecb85..e1dc6de 100644 --- a/crates/g3-core/src/tools/file_ops.rs +++ b/crates/g3-core/src/tools/file_ops.rs @@ -355,9 +355,9 @@ pub async fn execute_read_image( if resized_size < original_size { (resized, true) } else { - // Resize didn't help, use original but warn if it's huge + // Resize didn't help, use original bytes with original media type debug!("Resize didn't reduce size, using original"); - (bytes, original_dimensions.map(|(w, h)| w > MAX_IMAGE_DIMENSION || h > MAX_IMAGE_DIMENSION).unwrap_or(false)) + (bytes, false) } } Err(e) => {