For example, I want to achieve something like this youtube video where the face is perfectly sized and positioned every frame


The creator of the video mentions that he had to size and position each of the photos individually, I was wondering if there is a way of automating it?

I’m a newbie to photography and editing so I would be grateful if I could be pointed in the right direction if this has been answered before.

  • 1
    Hi Aryan and welcome to Photo.SE! It is greatly appreciated if you show your research before asking a question. Have you for example searched for the words "crop face" on this website? Did you find anything useful? If not, could you indicate how the search results do not fit your current problem? May 29 '21 at 12:29
  • 1
    Does this answer your question? How can I batch crop based on face location? May 29 '21 at 12:30
  • Hi Saaru, thanks so much for the feedback! What I was looking for was a solution where the program would manipulate the images such that the faces would be exactly aligned if all the photos are layered on top of each other. The thread was about detecting faces and putting them in a general area (in that case, rule or thirds). But that thread did point me in the right direction and gave me some ideas of how I might automate this myself. Thank you!
    – Aryan Jain
    May 30 '21 at 15:05

If you use Gimp, with the ofn-layer-aligner script:

  • you load both images as layers in the same Gimp image (File > open for the first, File > Open as layers for the others)
  • you set two points on the first (reference) image (typically, the center of the pupils)
  • you set two points on the second (target) image (the pupils again)
  • the script rotates/scales/moves the target layer so that the points coincide in both images.
  • Is there a way to automatically point to the pupils instead of doing it manually?
    – Aryan Jain
    May 30 '21 at 15:06
  • Automatic, possibly, accurate enough, remains to be proven. Automatic software may lock on reflections of light in the iris and so somewhat misaligh images. The method above is fairly quick, I used to align images for a timelapse.
    – xenoid
    May 30 '21 at 17:20
  • fairly quick? For 3000 photos, this sounds like cruel and inhuman punishment.
    – osullic
    Jun 29 '21 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.