Yesterday I had an idea to show text completion by Autohotkey with animated images (GIFs)
Speed up git commands with Autohotkey
Krzysztof Kopieczek ・ Apr 20 '21
Unfortunately dev.to changes pasted images to *.png. After the image is pasted to the text, it's being changed to a proper markdown image placeholder:
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj3ef8hw44slxqk1agn1.png)
Seeing AWS in the image source immediately triggered me to use my existing Azure subscription to host *.gif files.
How to upload GIF to Azure Storage
- Let's assume you have existing Azure subscription. If not, you may consider reading/watching different tutorial.
Create a new Storage Account. I suggest using a new, separate resource group for your "blog stuff"
Provide account name (f.e. "kopieczekdevstoraccount"), select Azure region of your choice (any will be good, as dev.to readers are from all over the world), set standard performance, v2 account type and replication of your choice (I chose LRS because I don't need any backup). Other settings are irrelevant.
Wait for the account to be created and create a container. Give it any name, f.e. "images" and set Blob public access level.
Now just open newly created blob and upload your GIF.
Click on the uploaded gif on the blobls list and copy the blob URL.
Paste the URL to your post:
![image](https://kopieczekdevstoraccount.blob.core.windows.net/images/No1p3JHaGb.gif)
Voila! Now you can use GIFs in your dev.to posts.
Top comments (0)