Increase thumbnail size

This commit is contained in:
N-Pex 2025-08-27 16:08:52 +02:00
parent 8d99f36aad
commit 7d48812639
2 changed files with 4 additions and 4 deletions

View file

@ -138,8 +138,8 @@ export class AttachmentManager {
try {
let canvas: HTMLCanvasElement = document.createElement("canvas");
canvas.width = 320;
canvas.height = 240;
canvas.width = 640;
canvas.height = 480;
let video: HTMLVideoElement = document.createElement("video");
video.addEventListener("loadedmetadata", function () {
if (video.videoWidth > THUMBNAIL_MAX_WIDTH || video.videoHeight > THUMBNAIL_MAX_HEIGHT) {

View file

@ -24,8 +24,8 @@ export const ROOM_TYPE_CHANNEL = "im.keanu.room_type_channel";
export const STATE_EVENT_ROOM_TYPE = "im.keanu.room_type";
export const THUMBNAIL_MAX_WIDTH = 320;
export const THUMBNAIL_MAX_HEIGHT = 320;
export const THUMBNAIL_MAX_WIDTH = 640;
export const THUMBNAIL_MAX_HEIGHT = 640;
// Install extended localized format
dayjs.extend(localizedFormat);