forked from matrix-org/matrix-rust-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: Improvements around
generate_image_thumbnail
(matrix-org#3415)
* sdk: Return a Thumbnail from generate_image_thumbnail We have already all the data for it. Also fixes an error where the thumbnail format was assumed to always be JPEG. * sdk: Allow to select the format of the generated thumbnail Sending an attachment could often fail if the image crate cannot encode the thumbnail to the same format as the original. This allows to select a known supported format to always be able to generate a thumbnail. * sdk: Do not return error of thumbnail generation for SendAttachment Since the thumbnail is optional, failing to generate it should not stop us from sending the attachment. * Apply code review fixes * sdk: Split attachment tests in separate file * sdk: Add integration tests for generating thumbnails * Revert wiremock debug log level --------- Signed-off-by: Kévin Commaille <[email protected]>
- Loading branch information
Showing
11 changed files
with
624 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ jobs: | |
- markdown | ||
- socks | ||
- sso-login | ||
- image-proc | ||
|
||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.