developersharif / bgremover-app

🖼️ Free Offline Image Background Remover for Linux,Windows.
http://bgremover.realbrain.cc/
MIT License
203 stars 14 forks source link

Problem saving jpg #13

Closed ZarinNegah closed 1 year ago

ZarinNegah commented 1 year ago

Hello Good time

In version 2, after removing the background or whitening the background of the image When we want to save in jpg format, we come across the errore in the attachment

where is the problem from? -2147483648_-213681

ZarinNegah commented 1 year ago

please check issue

developersharif commented 1 year ago

please check issue Thank you for reaching out to us with this issue. I appreciate your feedback and understand the problem you're experiencing. As a single developer, I need some time to investigate and resolve this issue. I'll prioritize this and work on a solution as asap.

ZarinNegah commented 1 year ago

Hello Thank you for checking We are waiting for your good news

developersharif commented 1 year ago

Hello Thank you for checking We are waiting for your good news

Thank you for your clarification. I understand the issue now. The error you're encountering, 'Cannot write mode RGBA as JPEG,' is because JPG format doesn't support transparency (alpha channel) by default. JPG is a lossy compression format and is designed for images with a solid, opaque background.

To save a transparent background, you should consider using a format that supports transparency, such as PNG. If you'd like to keep the quality of the image and retain the transparency, I recommend saving it as a PNG instead of JPG.

ZarinNegah commented 1 year ago

Hello Good time We need images with colored background and png format is not usable for us And also only jpg format can be used for our work Solutions are available on the Internet Please upgrade

https://stackoverflow.com/questions/48206051/image-conversion-cannot-write-mode-rgba-as-jpeg

https://stackoverflow.com/questions/52497433/cannot-write-mode-rgba-as-jpeg-how-to-resolve-this-error-without-converting-imag

https://github.com/python-pillow/Pillow/issues/2609