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

Use resize endpoint for images #290

Merged
merged 5 commits into from
Nov 7, 2023

Conversation

MGaetan89
Copy link
Member

Pull request

Description

Images displayed in the player's notification are now resized using the dedicated service. For now, we use a width of 480px, and WEBP.

Changes made

  • Integrate the service to resize images
  • Fix a couple of warnings

Checklist

  • Your branch has been rebased onto the main branch.
  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).
  • All pull request status checks pass.

@MGaetan89 MGaetan89 linked an issue Nov 6, 2023 that may be closed by this pull request
1 task
@@ -28,6 +28,7 @@ object MediaItemUrn {
MediaMetadata.Builder()
.setTitle(title)
.setSubtitle(subtitle)
// TODO Integrate `ImageScaleService` once we know if this class will be used or not
Copy link
Member

Choose a reason for hiding this comment

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

Is this a TODO for the future or has it been addressed (or not)?

Copy link
Member Author

@MGaetan89 MGaetan89 Nov 7, 2023

Choose a reason for hiding this comment

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

This class (MediaItemUrn) was created in September, but is currently not used.
I'd like to check its status with @StaehliJ, to know if it makes sense to update it, or if we should delete it, or if the change is not necessary here.

@@ -28,6 +28,7 @@ object MediaItemUrn {
MediaMetadata.Builder()
.setTitle(title)
.setSubtitle(subtitle)
// TODO Integrate `ImageScaleService` once we know if this class will be used or not
Copy link
Member

Choose a reason for hiding this comment

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

Who can answer to this question?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hopefully @StaehliJ. I've given a bit more context here: #290 (comment)

Copy link
Member

@defagos defagos left a comment

Choose a reason for hiding this comment

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

Maybe ImageScalingService would be more correct than ImageScaleService?

@MGaetan89 MGaetan89 force-pushed the 276-corebusiness-resize-url-from-service-image branch from c22386b to f9b685f Compare November 7, 2023 12:49
@MGaetan89 MGaetan89 merged commit f1b298a into main Nov 7, 2023
4 checks passed
@MGaetan89 MGaetan89 deleted the 276-corebusiness-resize-url-from-service-image branch November 7, 2023 13:29
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.

CoreBusiness resize url from service image
3 participants