Using Joplin Mobile 2.11.32 (Android)
When I insert an image on the desktop app, it asks me if I want to resize it down to 1920p, which I think is a good thing to do.
But it seems on the mobile app it doesn't ask that, an imports the image at its original resolution.
Is this behavior normal ?
Basically what I ended up doing is to never use the mobile app to insert an image, always the desktop app.
I have exactly the same issue. I will be great if mobile apps will be able to resize pictures, because now it is really limited or end up wit adding big files without reason
Make sure that the "resize large images" setting is enabled:
If it doesn't resize large images when this setting is enabled, that's a bug!
1 Like
I have just tested with "Always ask" (not asking) and "Always resize". Both not working
version 2.12.2
I've just tried and it's working fine for me with "Always ask". Could you provide the image you are trying to attach?
I have played with this image. Not working for me. Just tried second time with this.
Looks like image is resized when I have added it here because here is info
Hmm, yes it's 1920px here, so it wouldn't be resized. Are you able to upload it somewhere so that we can download it as it is (without being converted by some service)? Or compress it as zip first
20230909_190715.jpg.zip (2.0 MB)
ZIP should work
ZIP should work
20230909_190715.jpg.zip (2.0 MB)
https://u.pcloud.link/publink/show?code=XZoqo3VZSVdJpvPTV47cLLRsTUs2CRsPmDyy
You should be able to download. There is option of direct download without need of login to pcloud
I hope that you see above post because I got message that some is hidden, probably when I have tried to send ZIP file
Thanks, it works fine now too. My app wasn't up to date, didn't have the "resize" option (I guess it's been added fairly recently).
I just upgraded to version 2.12.3 on Android, it works fine. Try and upgrade to the latest version. Are you on Android or iOS ?
I just tested with your 4348x3251px picture, and indeed it doesn't ask to resize.
There must be something special with it, because I tested a dozen other pictures, it always asked to resize. Can you try with some other pictures ?
I just tested with your 4348x3251px picture, and indeed it doesn't ask to resize.
It is simply photo from my phone - Samsung A52 so quite popular model
I have tested picture downloaded from internet and indeed it was, resized. Than I have tested with some other pictures from my gallery and it works 50/50. Some are resized some not Don't know what is an issue
I think I have found at least one different between photos which are asked to be resized with this which are not.
When I add to Joplin app original photo -> Joplin ask to resize it.
When I add a little cropped but still big photo - Joplin not asking to resize it The same with scans which I always crop during scanning.
Do you have any idea why is like this?
The library used for checking size reports 1087x813 for this image.
It seems that the Image.getSize() doesn't report the pixel size on Android
opened 11:55AM - 05 Nov 18 UTC
closed 09:15AM - 10 Dec 18 UTC
Platform: Android
Resolution: Locked
API: Dimensions
Component: Image
- [x] Review the documentation: https://facebook.github.io/react-native
- [x]… Search for existing issues: https://github.com/facebook/react-native/issues
- [x] Use the latest React Native release: https://github.com/facebook/react-native/releases
## Environment
React Native Environment Info:
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 47.52 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.1 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.1 => 0.57.1
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
## Description
Image.getSize does not return the correct width and height of the image. See the example below:
```
// uses RNCamera from 'react-native-camera'
takePicture = async (camera: any) => {
const options = {
quality: 0.5,
base64: false,
}
const metadata = await camera.takePictureAsync(options)
const { uri, width, height } = metadata
console.log({ width, height })
if (isAndroid) {
Image.getSize(uri, (w, h) => {
console.log({ width: w, height: h })
})
}
}
```
console.log results:
metadata from takePictureAsync:
{ width: 2592, height: 1944}
result from Image.getSize:
{ width: 1296, height: 972 }
I confirmed after exporting the picture that the real dimensions are the ones from takePictureAsync.
## Reproducible Demo
see the example
We might need this package
I was just looking into this and notified the upstream package:
opened 12:52PM - 06 Nov 18 UTC
bug
### Description
On react native, `Image.getSize() ` uses Fresco ([here](htt… ps://github.com/facebook/react-native/blob/0a39cda39a83313fa1628759b2735d58ffcc02ec/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java#L71)) to return the width and height of a given image.
As explaned in this react-native issue (https://github.com/facebook/react-native/issues/22145), the returned width and height are inconsistent in Android. The ratio between width and height is correct, but the values of width and height are not.
### Reproduction
See example in https://github.com/facebook/react-native/issues/22145
### Additional Information
react: 16.5.0 => 16.5.0
react-native: 0.57.1 => 0.57.1
* Fresco version: com.facebook.fresco:fresco-1.10.0
* Platform version: Android 6.0.1 (One plus One); Android 7.0 (Huawei MediaPad T3 10);
That react-native-image-size package unfortunately doesn't even build (Java code is invalid), I think the owner messed up a merge and didn't check if it was still working:
https://github.com/eXist-FraGGer/react-native-image-size/commit/6927595b701f169067e6aa2aa7ec74c0aac7bf4a#r128304078