[APP-1968] Increase image upload resolution (#10073)

This commit is contained in:
Eric Bailey
2026-03-20 11:22:36 -05:00
committed by GitHub
parent 5bcb909081
commit 34d8c6fe58
6 changed files with 61 additions and 10 deletions
+7
View File
@@ -4,6 +4,7 @@ import {
type ImageStyle,
Keyboard,
type LayoutChangeEvent,
Platform,
StyleSheet,
TouchableOpacity,
View,
@@ -24,6 +25,7 @@ import {Admonition} from '#/components/Admonition'
import * as Dialog from '#/components/Dialog'
import {MediaInsetBorder} from '#/components/MediaInsetBorder'
import {Text} from '#/components/Typography'
import {useAnalytics} from '#/analytics'
import {IS_IOS, IS_NATIVE} from '#/env'
import {type PostAction} from '../state/composer'
import {EditImageDialog} from './EditImageDialog'
@@ -147,6 +149,7 @@ const GalleryItem = ({
}: GalleryItemProps): React.ReactNode => {
const {_} = useLingui()
const t = useTheme()
const ax = useAnalytics()
const altTextControl = Dialog.useDialogControl()
const editControl = Dialog.useDialogControl()
@@ -161,6 +164,10 @@ const GalleryItem = ({
}
const onImageEdit = () => {
ax.metric('composer:image:edit', {
platform: Platform.OS,
})
if (IS_NATIVE) {
cropImage(image).then(next => {
onChange(next)