Taking care of your media library

For most, adding images to a website is something that is thought about much harder than choosing the image and using your media library upload feature to imclude it on a page. The problem is that some important factors are ignored, with unexpected consequences. Here are some tips to avoid the bad consequences and keep your media library clean and your website healthy.

Preparing your images

Aspect Ratio

I like to keep images to a specific aspect ratio. That is, I like all images to be the same shape. This gives my website a neat layout across all devices. Obviously this is a generalisation, but I impliment this tactic across blog images especially. Where this pays off most is on landing pages where sets of blog images are displayed side by side.

There are of course ways to force this anyway, but those ways can sometimes distort images, and of course they require extra work by your developer.

Here is a video I made some time ago that gives a free way to achieve this online:

File size

The next thing to think about is the file size. If you do not have a plugin installed (and even if you do), to crunch down your images, such as Smush or EWWW then your site can get very slow. I run my images through an external condenser before uploading. And yes, I have a compressing plugin installed too. My favourite external site to use is TINYPNG which is super simple to use, and very good at what it does.