<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ti kiu</title>
    <description>The latest articles on DEV Community by ti kiu (@ti_kiu).</description>
    <link>https://dev.to/ti_kiu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4255515%2F2e1e2887-66a0-4c1d-bb4a-2c5f08766121.jpg</url>
      <title>DEV Community: ti kiu</title>
      <link>https://dev.to/ti_kiu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ti_kiu"/>
    <language>en</language>
    <item>
      <title>Why my face-ratio tool makes you place the landmarks yourself</title>
      <dc:creator>ti kiu</dc:creator>
      <pubDate>Fri, 20 Nov 2026 10:58:33 +0000</pubDate>
      <link>https://dev.to/ti_kiu/why-my-face-ratio-tool-makes-you-place-the-landmarks-yourself-oca</link>
      <guid>https://dev.to/ti_kiu/why-my-face-ratio-tool-makes-you-place-the-landmarks-yourself-oca</guid>
      <description>&lt;p&gt;Face-ratio tools have two problems: most of them want the photo uploaded to a server, and many of them end with a score telling you how attractive you are. I wanted neither. So PhiRatio does one narrow job: you place the landmarks yourself, and the photo never leaves the tab.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://phiratio.app/" rel="noopener noreferrer"&gt;PhiRatio&lt;/a&gt; around that constraint. You open a front-facing photo, place the points, and compare a few facial proportions to a golden-ratio and thirds-and-fifths grid. There is no attractiveness score, percentile, or overall verdict, and it is not a face-swap or face-edit tool. The tool is for people 18 or older.&lt;/p&gt;

&lt;p&gt;The tool is free to use. There's a one-time $7.99 unlock for the watermark-free high-resolution PNG and the PDF report — no subscription. Every ratio, both measuring windows, the grids, the watermarked preview, and the SVG/PNG templates are free.&lt;/p&gt;

&lt;p&gt;Automatic landmark detection is the obvious next step, but it usually means one of two things: the photo goes to a server, or the browser has to download a detection model. I didn't want either. Manual placement keeps the photo in the tab, avoids a model download, and makes every ratio explainable from the points you just put down. The cost is that placing those points is more work, especially on a phone — which is the part I most want feedback on.&lt;/p&gt;

&lt;p&gt;The tool also has two vertical measuring windows, and they do not cover the same span, so they cannot share one reference value.&lt;/p&gt;

&lt;p&gt;The hairline-to-chin window uses the golden ratio, φ = 1.618, as the face length / face width reference. A φ split of that window at the base of the nose also gives upper face / lower face a reference of 1.618.&lt;/p&gt;

&lt;p&gt;The default window is shorter at the top: visible forehead to chin. Only the upper segment is shortened, by a named constant called the visible forehead offset, VFO = 0.238, measured in face-width units:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;VFO = φ − 1.38 = 0.238
visible length / width reference = φ − VFO = 1.38
visible upper / lower reference = (1 − VFO) / (φ − 1) ≈ 1.233
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those visible-window numbers are derived design references, not a standard of appearance. VFO itself is a shared design assumption, not a measured property of a given face. If you mix a 1.38 reading with a 1.618 reference, or the other way around, you are comparing two different constructions.&lt;/p&gt;

&lt;p&gt;The measurement core is a pure function: landmark coordinates and a window id go in, and each ratio comes out as a number, or stays empty if a required point is missing. Two of the window-dependent rows look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;valueFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;landmarks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;windowId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;at&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;landmarks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;windowTop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;windowId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;menton&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;at&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;landmarks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"menton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;subnasale&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;at&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;landmarks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subnasale"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;switch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"face-length-over-width"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;faceWidth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;landmarks&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// zygion to zygion&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;menton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"upper-face-over-lower-face"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;upper&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subnasale&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;lower&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;menton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;subnasale&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;upper&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="c1"&gt;// ...the other nine rows&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Vertical distances are taken after a roll correction that lines up the inner eye corners, so a slightly tilted photo does not quietly skew the up/down ratios.&lt;/p&gt;

&lt;p&gt;If you try it, the tool is here: &lt;a href="https://phiratio.app/" rel="noopener noreferrer"&gt;phiratio.app&lt;/a&gt;. The transparent PNG and SVG grids are on the &lt;a href="https://phiratio.app/templates/" rel="noopener noreferrer"&gt;templates page&lt;/a&gt;. If you've placed eight or more points on a phone, tell me which step felt most awkward — drag precision, pinch-zoom, or undo.&lt;/p&gt;

</description>
      <category>privacy</category>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
