BackgroundRemoval icon indicating copy to clipboard operation
BackgroundRemoval copied to clipboard

Image size and dimension problem

Open ketssssss opened this issue 2 years ago • 2 comments

  • I have taken images from the camera (iPhone XR - W3024 X H4032)
  • Original image size was 3.5 MB
  • When I got an updated image (White background) the size was increased (6.7 MB)
  • Even file resolution was also changed (4032 X 4032)

How I can get an updated image with the proper size and dimension?

ketssssss avatar Nov 29 '22 11:11 ketssssss

@ketssssss

You can try a cormel model supports high resolution(1024*1024).

mgstar1021 avatar Nov 30 '22 07:11 mgstar1021

@ketssssss

The reason for the dimension change is that the model only support square size input.

This means I have to resize your image first get the mask and then apply the mask to your picture and since the mask is already square this bug happens.

I agree that this is not the optimal solution, and this should be fixed by croping the extra dimension image. Contribution is highly appreciated.

In the mean time I will keep this issue opened until I have time to refactor some stuff

Ezaldeen99 avatar Dec 07 '22 09:12 Ezaldeen99