Extraltodeus / depthmap2mask

Create masks out of depthmaps in img2img
355 stars 35 forks source link

Error if file format for images is set to JPG #6

Open Vega-KH opened 1 year ago

Vega-KH commented 1 year ago

To reproduce:

In A1111 settings, set "File format for images" to jpg, then run the extension.

The issue:

By default, it is trying to save the image in RBGA format (with an alpha channel.) JPG doesn't have an alpha channel, so there is an error. I don't think this alpha channel is needed, so it may be beneficial to remove it before saving to reduce storage space.