{
  "type": "aside",
  "time": "17:41:00-07:00",
  "title": "Playing with image uploads",
  "tags": [
    "metablogging"
  ],
  "attachments": [
    "attachments/IMG_8514.jpeg",
    "attachments/IMG_8513.jpeg",
    "attachments/IMG_8512.jpeg",
    "attachments/IMG_8515.jpeg"
  ],
  "year": "2025",
  "month": "05",
  "day": "10",
  "isDir": false,
  "slug": "playing-with-image-uploads",
  "date": "2025-05-11T00:41:00.000Z",
  "postName": "2025-05-10",
  "html": "<p><a href=\"https://www.makeitsnappys.com/\">Snappy's</a> was playing <a href=\"https://www.imdb.com/title/tt0119116/\">The Fifth Element</a> when I went there for lunch today. I wonder if I can get image uploads to work? Actually, probably not: I think I need to write the code to copy the images to the site build 🤔</p>\n<p>(...time passes...)</p>\n<p>And, <a href=\"https://github.com/lmorchard/blog.lmorchard.com/commit/0712506fa593928d8ae4a9b05871aa13b132d37f\">I think I managed to do it</a>? Added code to copy over attachments from Obsidian. Had to rework the URLs for display in post lists, too. And it looks like I fixed my image gallery component by not lazy-loading the images. Not entirely happy with that outcome, so I may bang on it some more. But it seems to be working better now overall.</p>\n<p>But, the nice thing is that I can easily add images as attachments to a file in Obsidian. That makes it a comfy user interface for me - even from my phone - and the site generator takes care of the rest!</p>\n<p>Next part might be to apply a little image optimization along with the copying, since these images are straight from my phone and probably too huge?</p>\n<image-gallery>\n<img src=\"attachments/IMG_8514.jpeg\" width=\"\" height=\"\">\n<img src=\"attachments/IMG_8513.jpeg\" width=\"\" height=\"\">\n<img src=\"attachments/IMG_8512.jpeg\" width=\"\" height=\"\">\n<img src=\"attachments/IMG_8515.jpeg\" width=\"\" height=\"\">\n</image-gallery>",
  "body": "\n[Snappy's](https://www.makeitsnappys.com/) was playing [The Fifth Element](https://www.imdb.com/title/tt0119116/) when I went there for lunch today. I wonder if I can get image uploads to work? Actually, probably not: I think I need to write the code to copy the images to the site build 🤔\n\n(...time passes...)\n\nAnd, [I think I managed to do it](https://github.com/lmorchard/blog.lmorchard.com/commit/0712506fa593928d8ae4a9b05871aa13b132d37f)? Added code to copy over attachments from Obsidian. Had to rework the URLs for display in post lists, too. And it looks like I fixed my image gallery component by not lazy-loading the images. Not entirely happy with that outcome, so I may bang on it some more. But it seems to be working better now overall.\n\nBut, the nice thing is that I can easily add images as attachments to a file in Obsidian. That makes it a comfy user interface for me - even from my phone - and the site generator takes care of the rest!\n\nNext part might be to apply a little image optimization along with the copying, since these images are straight from my phone and probably too huge?\n\n<image-gallery>\n![[attachments/IMG_8514.jpeg]]\n![[attachments/IMG_8513.jpeg]]\n![[attachments/IMG_8512.jpeg]]\n![[attachments/IMG_8515.jpeg]]\n</image-gallery>",
  "parentPath": "./content/posts/2025",
  "path": "2025/05/10/playing-with-image-uploads",
  "thumbnail": "/2025/05/10/playing-with-image-uploads/attachments/IMG_8514.jpeg",
  "needsBuild": true,
  "prevPostPath": "2025/05/09/miscellanea",
  "prevPostTitle": "Miscellanea for 2025-05-09",
  "nextPostPath": "2025/05/10/miscellanea",
  "nextPostTitle": "Miscellanea for 2025-05-10"
}