Removed the condition that prevented the upscaling of the mask image. The transformation is now applied regardless of the mask dimensions, ensuring proper alignment between the original and mask images.
Changes:
Modified the iOS Swift file (ReactNativeBackgroundRemover.swift) to apply the mask transformation consistently.
Deleted redundant logic that was avoiding the transformation if the mask was smaller than the original image.
Affected File:
ReactNativeBackgroundRemover.swift
Why:
This change addresses an issue where smaller mask images would not be scaled correctly to fit the original image, potentially leading to incorrect blending or misaligned masks.
Description:
Changes:
ReactNativeBackgroundRemover.swift
) to apply the mask transformation consistently.Affected File:
ReactNativeBackgroundRemover.swift
Why:
This change addresses an issue where smaller mask images would not be scaled correctly to fit the original image, potentially leading to incorrect blending or misaligned masks.