Significantly different ImageManipulator compression results on iOS vs Android.

Please provide the following:

  1. SDK Version: 36
  2. Platforms: Android/iOS

I’m using the follow code to do “full compression” on an image.

  const convertedImage = await ImageManipulator.manipulateAsync(uri, [], {
    format: ImageManipulator.SaveFormat.JPEG,
    compress: 0,
  });

After running the exact same code on the exact same image, copied to each device, these are the resulting sizes. (in bits)

Android
size: 72753

iOS
size: 2670519

These are order of magnitude differences and we get this same disparity at other compression levels. We’re hoping to do some compression on the client side to keep server traffic down but it won’t be possible with this big an inconsistency.

Is this expected or did I find a bug?

Thanks!
Jeremy

2 Likes

Seeing SUPER weird behavior.
Details in my GitHub Issue.
https://github.com/expo/expo/issues/6726#issuecomment-577896301

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.