Integrating a CDN for image hosting part 1



Super excited. I recently created an account at Cloudinary.com for their free account.

I really want to switch over to a CDN for image hosting because my git project should not host all those images.

Here's what I accomplished:

  • I created an account which gives me enough free space to be fine for another good while.
  • I wrote a python script that allows me to parse through all my images and thumbnails and uploads them to the CDN.
  • Then I created a plugin for Pelican that parses all my files and replaces image references with the CDN domain.
  • If you are reading this article, then all images are being served from the CDN :D
  • Integrate img upload script into build process
  • Update .gitignore to never add the images again.
  • Remove all images from the git repo.

Whats left:

  • upgrade to new verion of Pelican to utilize symlink feature
  • update thumbnail creation script to account for symlink
  • Make sure I only have one copy of image on my harddrive finally!

I feel very good I finally did this. It's been a long time coming. I don't think there are any other real big ticket items to do now :) OR I'm just high on pain and can't think more than the moment. Woo.

Comments are loading... I hope ;)