mirror of https://github.com/laurent22/joplin.git
Android: Fix pasting PNG and JPEG images from the clipboard (#10777)
parent
8c0769fdb3
commit
77b74daa0e
|
@ -2,6 +2,10 @@ import { Size } from '@joplin/utils/types';
|
|||
import { Image as NativeImage } from 'react-native';
|
||||
|
||||
const getImageDimensions = async (uri: string): Promise<Size> => {
|
||||
if (uri.startsWith('/')) {
|
||||
uri = `file://${uri}`;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
NativeImage.getSize(
|
||||
uri,
|
||||
|
|
Loading…
Reference in New Issue