From 5b9cf6f07b2117938c77b645104be4cf721ac030 Mon Sep 17 00:00:00 2001 From: "Yasmin Seidel (JasminDreasond)" Date: Fri, 1 Mar 2024 19:03:20 -0300 Subject: [PATCH] scaleDownImage disabled by temp --- info/dev/requests.md | 2 ++ src/app/molecules/image-pack/ImagePackUpload.jsx | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/info/dev/requests.md b/info/dev/requests.md index d5183c36e..04dba3f27 100644 --- a/info/dev/requests.md +++ b/info/dev/requests.md @@ -1,3 +1,5 @@ + scaleDownImage to gif + Mobile Background mode Mobile Rec audio diff --git a/src/app/molecules/image-pack/ImagePackUpload.jsx b/src/app/molecules/image-pack/ImagePackUpload.jsx index 0cb62d7a5..ff03437da 100644 --- a/src/app/molecules/image-pack/ImagePackUpload.jsx +++ b/src/app/molecules/image-pack/ImagePackUpload.jsx @@ -1,7 +1,7 @@ import React, { useState, useRef } from 'react'; import PropTypes from 'prop-types'; -import { scaleDownImage } from '../../../util/common'; +// import { scaleDownImage } from '../../../util/common'; import Text from '../../atoms/text/Text'; import Button from '../../atoms/button/Button'; @@ -26,8 +26,9 @@ function ImagePackUpload({ onUpload, roomId }) { if (shortcode === '') return; setProgress(true); - const image = await scaleDownImage(imgFile, 512, 512); - const { content_uri: url } = await uploadContent(image, true); + // const image = await scaleDownImage(imgFile, 512, 512); + // const { content_uri: url } = await uploadContent(image, true); + const { content_uri: url } = await uploadContent(imgFile); onUpload(shortcode, url); setProgress(false);