Show HN: FaceCrop – Align and crop portrait photos with face detection

(facecrop.puntofisso.net)

1 points | by puntofisso 5 hours ago ago

3 comments

  • jqpabc123 4 hours ago ago

    Suggestions: Allow aspect ratio to be specified as well as a target data size.

    For example: 9:16 100kb (for web use)

    • puntofisso 4 hours ago ago

      Thanks, that's a good shout!

      Two thoughts:

      1) I'm not 100% sure what to do when the ratio can't be complied with because the original photo has a certain shape, but I'm definitely thinking about it; in general, how to get as much as a consistent crop is the main reason for FaceCrop;

      2) trying to keep the UX as simple as possible, so I assume (in this MVP) that the user wants to crop pictures at the same size/quality of the original, and do any further edits elsewhere... but it does make sense and it's probably something not that difficult to achieve with a sensible interface (it also reminds me of https://squoosh.app/)

      • jqpabc123 3 hours ago ago

        I'm not 100% sure what to do when the ratio can't be complied with

        Center the crop on the detected face and use the detected width or height, whichever is smaller.

        If no face, just use 50% of the smallest overall dimension (height or width) and adjust the other dimension to match the ratio.

        If an available dimension is exceeded, use what is available and adjust the remaining one to match the ratio.

        This should always result in a valid crop ratio.

        Always allow for user adjustment.