react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

The image after crop has a white bottom border line

Open Robiullah2244 opened this issue 2 years ago • 3 comments

Version

  • react-native-image-crop-picker v0.38.0
  • react-native v0.66.4

Platform

  • iOS

Expected behaviour

No bottom border line

Actual behaviour

The image after the crop has a white bottom border line

Steps to reproduce

ImagePicker.openPicker({
    width: 975,
    height: 545,
    mediaType: 'photo',
    forceJpg: true,
    cropping: true,
    includeBase64: true,
})

Attachments

image image

Robiullah2244 avatar Nov 03 '22 11:11 Robiullah2244

Same issue here.

akeva001 avatar Aug 28 '23 23:08 akeva001

any update ?

jackgf5 avatar Feb 20 '24 14:02 jackgf5

I'm having this issue as well.

The bottom line is 2px high.

As a workaround, I added a cropping action with Expo Image Manipulator:

const imageResult = await ImageManipulator.manipulateAsync(
      img.path,
      [
        {
          crop: {
            originX: 0,
            originY: 0,
            width: img.width,
            height: img.height - 2,
          },
        },
      ],
      {
        compress: 0.8,
        format: ImageManipulator.SaveFormat.JPEG,
      }
    )

Seems to be working on first pass.

EthanDM avatar Apr 26 '24 03:04 EthanDM