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

[Draft] Test using new image resizing service #253

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/design-system/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const Card = ({
<div className={styles.container} style={{ maxWidth }}>
<div className={styles.square}>
{image ? (
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
) : (
<div className={styles.image}>
<Icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const BasicImageCarousel = ({
<div style={getPlaceholderStyles(size?.ratio)} />
<div className={classNames(styles.slide, styles.visible)}>
{image ? (
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
) : (
<Icon
type={IconType.Photograph}
Expand Down Expand Up @@ -178,7 +178,7 @@ const MultiImageCarousel = ({
[styles.visible]: index === slideIndex,
})}
>
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
</div>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/session-details/playback/playback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Playback = ({ session }: { session: SessionDetails }) => {
onMouseOut={() => setShowOverlay(false)}
>
<Frame
src={activeCapture?.src}
src={activeCapture?.src + '?width=1024'}
width={activeCapture?.width ?? session.firstCapture.width}
height={activeCapture?.height ?? session.firstCapture.height}
detections={activeCapture?.detections ?? []}
Expand Down