Skip to content

Commit

Permalink
scaleDownImage disabled by temp
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminDreasond committed Mar 1, 2024
1 parent 2368cc5 commit 5b9cf6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions info/dev/requests.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
scaleDownImage to gif

Mobile Background mode
Mobile Rec audio

Expand Down
7 changes: 4 additions & 3 deletions src/app/molecules/image-pack/ImagePackUpload.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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);
Expand Down

0 comments on commit 5b9cf6f

Please sign in to comment.