openai-openapi icon indicating copy to clipboard operation
openai-openapi copied to clipboard

images which are originally transparent is not edited but completely sent as a new

Open Shashank-Bhatt1 opened this issue 9 months ago • 0 comments

i am trying to edit image using amazing dalle-2 model provided by openai and using masking as suggested in this doc.

however when original image is having transparent pixels itself, dalle-2 sends completely new picture instead of getting properly older one and then try to generate based on image and mask.

For example I used this image as main image file 12jahre

and then this image as a mask 12jahreedited

and used prompt something as 17 years old child birthday symbol and i expect it would give something like existing letters and produce 7 from that but it did not because 12 years old image has transparency except two letters 1 and 2.

here is what i eventually ended up getting. To me these letters looks very horrible and if we look closely, it looks like it has the older image letter in the background and somewhat transparency of black which was earlier completely transparent. Screenshot 2024-05-06 190422

Is there anyway we can instruct it not to do anything where original image was already transparent?

Shashank-Bhatt1 avatar May 06 '24 13:05 Shashank-Bhatt1