In some cases, the tool incorrectly turns shadows black instead of removing them. This results in an unnatural outline around the product, requiring additional manual editing to achieve a clean and accurate background removal.
Hi there,
Thanks for flagging this. Could you please share the original input image, along with the API Params you’ve used when making this so we can reproduce?
Yea, what mail do you want me to send the picture to?
$postData = ([ ‘image_file’ => new CURLFile($imagePath), ‘format’ => ‘jpg’, ‘bg_color’ => ‘#ffffff’, ‘crop’ => ‘true’ ]); //$data = $this->buildMultipartFormData($postData, $boundary); $data = $postData; $headers = [ //‘Accept: image/jpeg, application/json’, //‘Content-Type: multipart/form-data; boundary=’ . $boundary, ‘x-api-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, “https://sdk.photoroom.com/v1/segment”); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”); curl_setopt($ch, CURLOPT_ENCODING, “”); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POSTFIELDS, ($data)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)’); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
Hi @kids-world , i’ve tested this out on my end and haven’t been able to reproduce. How often was this happening for you? Is it still something you’re experiencing?
Thanks in advance for your help while we look further into this.
