View profile

Where do you put your images?

This week starts another mini-series, this time dealing with media, specifically images and maybe a l
develop.cheap
Where do you put your images?
By Colin Bate • Issue #19 • View online
This week starts another mini-series, this time dealing with media, specifically images and maybe a little bit of video. Let me know if there is anything you’d like to see.

We’ve talked a bit about serving up static files when we explored static sites. Most of those hosts serve their content over a CDN which is designed to optimize delivery by getting your assets, including media/image files, closer to the end user.
However, those services typically treat images like any other file. It also may mean that you need to keep your images in your Git repository with the rest of your content. That might be fine for some icons and small accent images, but for anything larger like photos or other imagery which is part of your content, you may want to consider an alternative. The main reason being that distributed version control systems (DVCS) like Git and Mercurial, don’t handle large binary files very well.
On top of that there are often special needs around preparing images for your site. You may have a single source photo, that itself may be multiple megabytes in size, which you want to resize into a thumbnail and maybe a couple of different versions for mobile and other uses. You can of course find tools to do what you want as part of your build, or you can check out some services which cater to this exact need.
While video is something handled by a couple of these services, I’m not sure I’d recommend them for video streaming/hosting. If you want to have video on your site, you can start with the obvious YouTube or Vimeo, or look at some of the other dedicated video hosting services. I will explore those options in a future issue.
Cloudinary
ImageKit.io
Sirv
Netlify Large Media
Yet another option for stashing your images is using object storage from your favourite cloud provider. S3, DigitalOcean Spaces, Firebase, etc. all provide hosting for files that you can use if you want to keep your images separate from the rest of your content. Most, if not all, of the services above use one or more of these storage providers themselves.
Did you enjoy this issue?
Colin Bate

Technical tools, services, and tips for people on a budget.

If you don't want these updates anymore, please unsubscribe here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue
Colin Bate, 23 Seagull Lane, Pembroke Bermuda