pl-fe: increase DEFAULT_MAX_PIXELS to match Mastodon defaults
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
import { defineMessages, type IntlShape } from 'react-intl';
|
import { defineMessages, type IntlShape } from 'react-intl';
|
||||||
|
|
||||||
|
import { useSettingsStore } from 'pl-fe/stores/settings';
|
||||||
import toast from 'pl-fe/toast';
|
import toast from 'pl-fe/toast';
|
||||||
import { isLoggedIn } from 'pl-fe/utils/auth';
|
import { isLoggedIn } from 'pl-fe/utils/auth';
|
||||||
import { formatBytes, getVideoDuration } from 'pl-fe/utils/media';
|
import { formatBytes, getVideoDuration } from 'pl-fe/utils/media';
|
||||||
@ -9,7 +10,6 @@ import { getClient } from '../api';
|
|||||||
|
|
||||||
import type { MediaAttachment, UpdateMediaParams, UploadMediaParams } from 'pl-api';
|
import type { MediaAttachment, UpdateMediaParams, UploadMediaParams } from 'pl-api';
|
||||||
import type { AppDispatch, RootState } from 'pl-fe/store';
|
import type { AppDispatch, RootState } from 'pl-fe/store';
|
||||||
import { useSettingsStore } from 'pl-fe/stores/settings';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
exceededImageSizeLimit: { id: 'upload_error.image_size_limit', defaultMessage: 'Image exceeds the current file size limit ({limit})' },
|
exceededImageSizeLimit: { id: 'upload_error.image_size_limit', defaultMessage: 'Image exceeds the current file size limit ({limit})' },
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
|
/* eslint-disable no-case-declarations */
|
||||||
import { hasCanvasExtractPermission } from './favicon-service';
|
import { hasCanvasExtractPermission } from './favicon-service';
|
||||||
|
|
||||||
/* eslint-disable no-case-declarations */
|
const DEFAULT_MAX_PIXELS = 7680 * 4320;
|
||||||
const DEFAULT_MAX_PIXELS = 1920 * 1080;
|
|
||||||
|
|
||||||
interface BrowserCanvasQuirks {
|
interface BrowserCanvasQuirks {
|
||||||
'image-orientation-automatic'?: boolean;
|
'image-orientation-automatic'?: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user