processImage API - Face not detected on custom image

I’ve been testing the processImage API on the DeepAR Web SDK using the example repo here:
https://github.com/DeepARSDK/photoedit-web-js

After cloning the repo, everything works fine with the sample image provided. The filters apply correctly and the face tracking is detected.

However, when I try replacing the image with another one (for example, one below),

the filter loads but the face is not detected. I can see that the tone of the image changes, so the filter itself is being applied, but the makeup effect isn’t working because the face tracking fails.

So the issue seems to be:

  • Original image in the repo → works fine (face detected).

  • Custom image → filter loads, but face detection fails.

Could you let me know if this is a limitation of processImage or if there’s something additional I need to configure when passing a custom image?

Thanks in advance!