Skip to content

Commit

Permalink
fix: Change image API endpoint (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
afifurrohman-id committed Jul 6, 2024
1 parent 053d413 commit 073faae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/img.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ pub fn crop_image(buff: &[u8]) -> Vec<Vec<u8>> {
let cropped_img = img.crop(start_x, start_y, PART_SIZE, PART_SIZE);

let mut buffer = Cursor::new(Vec::new());
cropped_img
.write_to(&mut buffer, IMAGE_FORMAT)
.unwrap();

cropped_img.write_to(&mut buffer, IMAGE_FORMAT).unwrap();

let buffer = buffer.into_inner();
results.push(buffer)
}
Expand Down

0 comments on commit 073faae

Please sign in to comment.