Closed TechHoruser closed 1 month ago
I have created a PR ( https://github.com/danielgatis/rembg/pull/619 ) to include this functionality.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Is your feature request related to a problem? Please describe. When using the Rembg API and passing the bgc property to remove background, the output image format defaults to PNG. However, users may require the ability to specify the output image format, such as JPEG, for various use cases including preserving image quality or reducing file size.
Describe the solution you'd like I would like to have the ability to set the output image format via the
extras
parameter for use it in the Rembg API request. This would allow users to specify their preferred output format, such as JPEG, and provide greater flexibility in handling image processing tasks.Describe alternatives you've considered An alternative solution could involve modifying the API documentation to inform users about the default output format and providing instructions on how to convert the PNG output to other formats post-processing. However, having the ability to directly specify the output format would streamline the workflow and enhance user experience.
Additional context This feature enhancement request is crucial for improving the usability and versatility of the Rembg API. It would empower users to tailor the output image format according to their specific requirements, ultimately leading to better integration and adoption of the API in various applications and projects.
Thank you for considering this enhancement request. If further clarification or information is needed, please let me know.