<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lan Yi's Notes]]></title><description><![CDATA[Lan Yi's Notes]]></description><link>https://lanyi.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 02 Nov 2026 22:12:06 GMT</lastBuildDate><atom:link href="https://lanyi.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How AI Face Shape Detection Works (and How to Get an Accurate Result From One Photo)]]></title><description><![CDATA["What's my face shape?" sounds like a simple question, but anyone who has stood in front of a mirror with a tape measure knows it isn't. Face shape matters…]]></description><link>https://lanyi.hashnode.dev/how-ai-face-shape-detection-works-and-how-to-get-an-accurate-result-from-one-photo</link><guid isPermaLink="true">https://lanyi.hashnode.dev/how-ai-face-shape-detection-works-and-how-to-get-an-accurate-result-from-one-photo</guid><category><![CDATA[AI]]></category><category><![CDATA[Machine Learning]]></category><dc:creator><![CDATA[Lan Yi]]></dc:creator><pubDate>Sat, 31 Oct 2026 02:24:09 GMT</pubDate><content:encoded><![CDATA[<p>"What's my face shape?" sounds like a simple question, but anyone who has stood in front of a mirror with a tape measure knows it isn't. Face shape matters for practical choices — haircuts, glasses frames, beard styles, even portrait lighting — and AI tools can now estimate it from a single photo. Here's how they work, why results sometimes disagree, and how to take a photo that gives you a reliable answer.</p>
<h2>The classic face shapes</h2>
<p>Most guides use six or seven categories: <strong>oval, round, square, rectangle (oblong), heart, diamond,</strong> and sometimes <strong>triangle (pear)</strong>. They're defined by a handful of ratios:</p>
<ul>
<li><strong>Face length vs. width</strong> (long faces are oblong/rectangle, short and wide ones are round/square)</li>
<li><strong>Forehead width vs. cheekbone width vs. jaw width</strong> (wide forehead and narrow chin points to heart; widest at the cheekbones points to diamond)</li>
<li><strong>Jawline angle</strong> (sharp, angular jaws read as square/rectangle; soft curves read as round/oval)</li>
</ul>
<h2>What the AI actually does</h2>
<ol>
<li><strong>Face detection</strong> finds the face in the image and crops it.</li>
<li><strong>Landmark detection</strong> places dozens of points along the jaw, chin, cheekbones, brows and hairline.</li>
<li><strong>Geometry</strong> turns those points into ratios — length/width, forehead/jaw, jaw angle.</li>
<li><strong>Classification</strong> maps the ratios (often with a trained model rather than fixed thresholds) to the closest face shape, usually with a confidence level, because real faces are frequently a mix of two shapes.</li>
</ol>
<h2>Why two tools can give different answers</h2>
<ul>
<li><strong>Head tilt and camera distance.</strong> Phone wide-angle lenses close up make the middle of the face look larger; tilting the chin up shortens the jaw.</li>
<li><strong>Hair covering the hairline or jaw.</strong> The model can't measure what it can't see.</li>
<li><strong>Expression.</strong> A big smile widens the cheeks and changes the jaw line.</li>
<li><strong>Borderline faces.</strong> If you're between oval and oblong, small changes flip the label — which is normal.</li>
</ul>
<h2>How to take a photo that gives an accurate result</h2>
<ul>
<li>Face the camera straight on, eyes level, neutral expression.</li>
<li>Hold the phone at arm's length or further (or use the 2x lens) to reduce distortion.</li>
<li>Pull hair back so the forehead and jawline are visible.</li>
<li>Use even, soft light — a window in front of you, not overhead light.</li>
<li>Skip beauty filters and heavy retouching; they reshape the jaw and skin.</li>
<li>Try 3–5 similar photos and look at the most common result.</li>
</ul>
<h2>Trying it yourself</h2>
<p>I tested this with <a href="https://faceanalysisai.com/">FaceAnalysis AI</a>, which gives a free face shape estimate together with a 1–10 photo score from one clear, front-facing photo (you can add up to five photos of the same person for a steadier estimate). There's also a dedicated <a href="https://faceanalysisai.com/face-shape-analysis/">face shape analyzer</a> page. The tool is upfront that the score is an AI estimate based on patterns in its training data, not a scientific measurement of anyone's worth — which is the right way to treat any of these tools. If you want more, it offers an optional paid full report with hairstyle, skincare and wardrobe suggestions.</p>
<h2>Using your face shape</h2>
<ul>
<li><strong>Haircuts:</strong> add height for round faces, add width at the sides for long faces, soften angles for square faces.</li>
<li><strong>Glasses:</strong> choose frames that contrast your shape — rounder frames for angular faces, angular frames for round faces.</li>
<li><strong>Beards:</strong> a fuller chin lengthens a round face; shorter sides keep a long face balanced.</li>
</ul>
<p>Face shape is a starting point, not a rule. Use it to narrow your options, then choose what you actually like.</p>
]]></content:encoded></item><item><title><![CDATA[What Hidden Metadata Is Inside Your Images (and How to Strip It Privately in the Browser)]]></title><description><![CDATA[Every photo you share carries more than pixels. A JPG straight from a phone can include the exact GPS coordinates where it was taken, the camera model, the…]]></description><link>https://lanyi.hashnode.dev/what-hidden-metadata-is-inside-your-images-and-how-to-strip-it-privately-in-the-browser</link><guid isPermaLink="true">https://lanyi.hashnode.dev/what-hidden-metadata-is-inside-your-images-and-how-to-strip-it-privately-in-the-browser</guid><category><![CDATA[metadata]]></category><category><![CDATA[privacy]]></category><dc:creator><![CDATA[Lan Yi]]></dc:creator><pubDate>Sat, 31 Oct 2026 02:22:57 GMT</pubDate><content:encoded><![CDATA[<p>Every photo you share carries more than pixels. A JPG straight from a phone can include the exact GPS coordinates where it was taken, the camera model, the time down to the second, and editing history. Images exported from AI generators and some editing apps now often carry <em>content credentials</em> as well. Before you post a picture of your home, your kids, or a client project, it's worth knowing what's in the file.</p>
<h2>The main metadata containers</h2>
<p><strong>EXIF</strong> is the oldest and most common. Cameras and phones write it into JPG (and often HEIC/WebP) files: camera make and model, lens, exposure, date and time, orientation, and — if location services are on — latitude and longitude.</p>
<p><strong>XMP</strong> (Extensible Metadata Platform) is an XML block that editing software uses for ratings, keywords, edit history, and tool names. Many generative tools write fields here that identify how an image was made.</p>
<p><strong>IPTC</strong> fields are used by newsrooms and stock libraries for captions, credits, copyright notices, and keywords.</p>
<p><strong>C2PA content credentials</strong> are a newer, cryptographically signed manifest that records where an image came from and what was done to it (for example "created with an AI model" or "edited in app X"). Platforms can read this manifest to show a provenance label.</p>
<p><strong>PNG text chunks</strong> (<code>tEXt</code>, <code>iTXt</code>, <code>zTXt</code>) can store arbitrary key/value text. Some AI image tools store the full generation prompt and settings here.</p>
<h2>How to check what a file contains</h2>
<ul>
<li>On the command line, <code>exiftool photo.jpg</code> prints nearly everything, including XMP and IPTC.</li>
<li><code>exiftool -G1 -a -s photo.jpg</code> groups the output by container so you can see which block each field lives in.</li>
<li>For C2PA, the open-source <code>c2patool photo.jpg</code> shows the manifest if one exists, or you can drop the file into the Content Credentials "Verify" site.</li>
</ul>
<h2>Why "remove EXIF" is often not enough</h2>
<p>Many "remove EXIF" options in phones and websites only delete the EXIF block. XMP, IPTC, C2PA manifests and PNG text chunks can survive. The most reliable approach is to <strong>re-encode the image into a brand-new file</strong> that only contains the decoded pixels — nothing from the original container gets copied.</p>
<p>You can do that yourself:</p>
<pre><code class="language-bash"># re-encode with ImageMagick and drop all profiles/metadata
magick input.jpg -strip output.jpg

# or with exiftool, delete every writable tag
exiftool -all= -o output.jpg input.jpg
</code></pre>
<h2>A no-install option that keeps files on your device</h2>
<p>If you don't want to install tools or upload private photos to a server, a browser-based cleaner can do the re-encode locally. I use the free <a href="https://synthclear.com/remove_ai_label">Remove AI Label / metadata cleaner from SynthClear</a>: it decodes each image in your browser and writes a fresh copy without the original EXIF (including GPS), XMP, IPTC, C2PA content credentials, or PNG text chunks. Nothing is uploaded; it handles JPG, PNG and WebP up to 15 MB each, 20 images at a time. JPEGs are recompressed at high quality and WebP comes out as PNG.</p>
<h2>What metadata removal does <em>not</em> do</h2>
<p>Stripping metadata only changes the file container. <strong>Pixel-level watermarks stay in the image.</strong> Google's SynthID, for example, is embedded in the pixels themselves and is designed to survive re-encoding, cropping and compression, so it can still be detected after the metadata is gone. SynthClear also offers a separate paid SynthID tool on its <a href="https://synthclear.com/">homepage</a>, but that's a different job from metadata cleaning.</p>
<h2>Use it responsibly</h2>
<p>Metadata cleaning is great for privacy — removing GPS from photos of your house, or camera serials from images you publish. Only process images you own or are authorized to edit, and keep following the disclosure rules of the platform, client, or publication you're posting to. If content is AI-generated and a platform requires you to label it, removing a file's metadata doesn't change that obligation.</p>
<h2>Quick checklist before you share a photo</h2>
<ol>
<li>Run <code>exiftool</code> (or any metadata viewer) to see what's inside.</li>
<li>Remove location and personal data by re-encoding to a fresh file.</li>
<li>Re-check the output to confirm the fields are gone.</li>
<li>Add any required disclosure yourself in the post text.</li>
</ol>
]]></content:encoded></item></channel></rss>