Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image size and dimension problem #6

Open
ketssssss opened this issue Nov 29, 2022 · 2 comments
Open

Image size and dimension problem #6

ketssssss opened this issue Nov 29, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ketssssss
Copy link

  • 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?

@mgstar1021
Copy link

@ketssssss

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

@Ezaldeen99
Copy link
Owner

@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 Ezaldeen99 added the enhancement New feature or request label Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants