Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.42 KB

Upload images to Imgur.md

File metadata and controls

57 lines (39 loc) · 1.42 KB
created modified
2024-12-11 22:05:22 UTC
2024-12-12 11:45:42 UTC

Add images to Imgur for Obsidian notebook (Ideaverse)

To add images to the Obsidian notebook:

  1. Move the images to the [[Metatropi]] content repository
  2. Rename the image files using the corresponding SHA1 hashes
  3. Commit the changes to source control
  4. Upload the images to Imgur
cls

# Move screenshots to Screenshots folder in Metatropi-Content repository

$sourcePath = "C:\Users\jjameson\OneDrive\Pictures\Screenshots\*"
$destinationPath = "C:\BackedUp\Azure-DevOps\Metatropi-Content\Screenshots\"

mv $sourcePath $destinationPath
cls

# Rename image files using corresponding SHA1 hashes

pushd C:\BackedUp\Azure-DevOps\Metatropi-Content\Scripts

.\Rename-Screenshots.ps1 |
    sort Path, NewFilename |
    select Path, NewFilename, OldFilename, Width, Height |
    Export-Csv ..\Files.csv -NoTypeInformation -Append

popd

Commit changes to source control

Upload images to Imgur

Use [EasyImgur](EasyImgur | Desktop image-uploading tool) to upload the images to Imgur. Then copy/paste the URL for each image into a Markdown link in Obsidian.

Example:

![Mandy enjoying some French delicacies](https://i.imgur.com/ryC27qe.jpeg)

Upload images to Imgur using EasyImgur