erosDiffusion/ComfyUI-enricos-nodes

Add perspective movement of the picture

Opened this issue · 4 comments

I hope the author can add the movement of perspective Angle of the picture, so that the perspective Angle of the picture can be moved directly in the workflow, avoiding switching back and forth to ps

hi @PLFENG I will investigate if this is possible with the library I'm using (but to my knowledge it's not possible)
under the hood this plugin uses Fabric.js.

one option could be to integrate a library like this
https://github.com/wanadev/perspective.js/
but likely not inside the (same) canvas

another option is to load a 3d model as image input via mixlab 3d image.

@PLFENG it looks like it was discussed just yesterday (again) after 8 years of ppl asking :)
fabricjs/fabric.js#2898

however I'm afraid it would not be possible with fabric.js.
i will keep investigating if there other solutions.

notes to self:

photo_2024-11-18_23-21-53
I have solved it by adding transform image at input. I have another question! Please make it possible to subtract the background image. Like first image will be ignored and it will output as a mask. (optional output)