{"id":2261,"date":"2025-06-03T17:20:26","date_gmt":"2025-06-03T21:20:26","guid":{"rendered":"https:\/\/www.unliterate.net\/?p=2261"},"modified":"2025-06-03T17:22:18","modified_gmt":"2025-06-03T21:22:18","slug":"graduation-embedded-thumbnails","status":"publish","type":"post","link":"https:\/\/www.unliterate.net\/index.php\/2025\/06\/03\/graduation-embedded-thumbnails\/","title":{"rendered":"Graduation Embedded Thumbnails"},"content":{"rendered":"\n<p>Graduation is an amazing accomplishment, and getting quality photos is also another accomplishment.<\/p>\n\n\n\n<p>This year our daughter walked the stage and the school hired a studio to take the Diploma-Holding photos. Today they provided us a link to their <a href=\"https:\/\/glasscityphotography.pixieset.com\/woodmoregraduation2025\/\" target=\"_blank\" rel=\"noreferrer noopener\">pixieset.com<\/a> shop to view those photos.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a06f2eb32142&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a06f2eb32142\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"800\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" data-id=\"2262\" src=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-01.jpg\" alt=\"\" class=\"wp-image-2262\" srcset=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-01.jpg 640w, https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-01-240x300.jpg 240w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a06f2eb3291f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a06f2eb3291f\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"427\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" data-id=\"2263\" src=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-02.jpg\" alt=\"\" class=\"wp-image-2263\" srcset=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-02.jpg 640w, https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-02-300x200.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/figure>\n\n\n\n<p>These are great photos, and as much as we would like both of them at $27.00 per photo we just cannot afford it. They even went the extra distance of overlaying their advertising\/copyright as well as adding in copyright and tag exif metadata within each photo to hammer it home that it&#8217;s their property.<\/p>\n\n\n\n<p>&#8230;except they forgot one tiny thing about their <a href=\"https:\/\/www.usa.canon.com\/shop\/p\/eos-r5\" target=\"_blank\" rel=\"noreferrer noopener\">Canon EOS R5<\/a> camera&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Having these photos on our desktop for Windows 10 it might be easy to notice that, in fact, the preview image of the photo is not a resized version of the original. It is, in fact, the embedded thumbnail. The embedded thumbnails happen to be of decent quality, and without the latter image adjustments provided. A bit of PHP later and we can easily extract the thumbnail with <a href=\"https:\/\/www.php.net\/manual\/en\/function.exif-read-data.php\" target=\"_blank\" rel=\"noreferrer noopener\">exif_read_data()<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$filename = $argv&#91;1];\n$metadata = exif_read_data($filename, \"THUMBNAIL\", false, true);\nif (isset($metadata&#91;'THUMBNAIL']&#91;'THUMBNAIL'])) {\n  file_put_contents('thumbnail.jpg', $metadata&#91;'THUMBNAIL']&#91;'THUMBNAIL']);\n} else {\n  echo \"thumbnail not found\\n\";\n}<\/code><\/pre>\n\n\n\n<p>The final two <em>extracted<\/em> images would be the following:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a06f2eb3414a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a06f2eb3414a\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"205\" height=\"256\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" data-id=\"2265\" src=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-01-thumbnail.jpg\" alt=\"\" class=\"wp-image-2265\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a06f2eb3481f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a06f2eb3481f\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"256\" height=\"171\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" data-id=\"2264\" src=\"https:\/\/www.unliterate.net\/wp-content\/uploads\/2025\/06\/kariah-graduation-02-thumbnail.jpg\" alt=\"\" class=\"wp-image-2264\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/figure>\n\n\n\n<p>Again, thumbnails, and not the highest quality, but it&#8217;s good to see that even modern day photography websites still can&#8217;t modify what was originally present in the photograph, and lack of shenanigans is always a great thing when dealing with businesses that need to survive from $27.00 photos.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Graduation is an amazing accomplishment, and getting quality photos is also another accomplishment. This year our daughter walked the stage and the school hired a studio to take the Diploma-Holding photos. Today they provided us a link to their pixieset.com shop to view those photos. These are great photos, and as much as we would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-2261","post","type-post","status-publish","format-standard","hentry","category-geek-instructions"],"_links":{"self":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/2261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/comments?post=2261"}],"version-history":[{"count":3,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/2261\/revisions"}],"predecessor-version":[{"id":2268,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/2261\/revisions\/2268"}],"wp:attachment":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/media?parent=2261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/categories?post=2261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/tags?post=2261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}