There are some problems with the PutImageDataToSelection method

According to the official example, the data in the selected image can be replaced, but if I perform the second replacement, the result is completely different from the first one.
This is the first time
This is the second time

The same method parameter is executed twice, but the results are completely different

Hello @bashfuldeng

Please correct me if I’m misunderstanding the usage scenario, it goes like this:

  1. You select an existing image in the document;
  2. To the selected image you apply method via plugin to replace the image;
  3. Then selecting the newly replaced image and executing method one more time.

Is that correct?

Yes, there’s no problem with your understanding.

Thanks for confirmation.
We are checking the situation. I will update this thread once any results come up.

Hello @bashfuldeng

I’m very sorry for the delayed response.

We have registered a bug based on this case. Indeed, currently result of second execution of the method differs.

Accept our apologies for the inconvenience caused.