Blog de videotutoriales, videojuegos, hardware, software, informática y tecnologíaBlog de videotutoriales, videojuegos, hardware, software, informática y tecnologíaBlog de videotutoriales, videojuegos, hardware, software, informática y tecnologíaBlog de videotutoriales, videojuegos, hardware, software, informática y tecnología

✕

MENTA ZEN
  • Home
  • Tutorials
  • WordPress Media Library: image optimisation

WordPress Media Library: image optimisation

The WordPress media library is one of the most important elements for a website’s performance. Poor management of images and files can slow down loading times, affect SEO, and worsen the user experience.

In this guide, you will learn how to optimize images in WordPress, which formats and sizes to use, what recommended file weight should be, and the best SEO practices when uploading content to the media library.

 


📂 What is the media library in WordPress?

The media library is the space where WordPress stores all the site’s multimedia files: images, documents, audio, and videos. From here you can reuse files, edit them, and optimize them to improve web performance.

🎯 What is the media library used for?

  • Centralize all site files in one place.
  • Reuse images without uploading duplicates.
  • Edit SEO data such as image alt text.
  • Improve the organization of multimedia content.

🗂️ What types of files are managed?

Mainly images, but also PDFs, audio files, and other documents compatible with WordPress.

 


🧾 Types of files that can be uploaded in WordPress

WordPress supports several file types by default, although some may depend on the server or plugins.

🖼️ Allowed images

  • JPG (recommended for general use).
  • PNG (recommended for logos and flat color images with transparency).
  • WebP (recommended for general use and transparency, the most optimized for SEO).
  • GIF (animations).
  • SVG (normally not allowed unless enabled by a plugin. Occasional use, such as for logos with text to ensure maximum sharpness).

📄 Other compatible files

  • Documents: PDF, DOC, DOCX, XLS, XLSX, ZIP, 7ZIP, RAR.
  • Audio: MP3, WAV.
  • Video: MP4 (recommended, better compression), MOV (not recommended, heavy videos)

🚫 Unallowed files

For security reasons, WordPress blocks executable files like EXE and other dangerous formats.

 


📐 Image sizes in WordPress

When you upload an image, WordPress automatically generates different sizes to optimize its use on the website.

📏 Default WordPress sizes

  • Thumbnail.
  • Medium.
  • Large.
  • Full size.

These sizes can be configured in Settings > Media.

👉 Attention: if you change the sizes here and have already uploaded images, it will only apply to new ones you upload. So, if you want previous images to have the new dimensions, you need to use a plugin like “Regenerate Thumbnails”.

🧠 What size to use in each case?

  • Thumbnail: listings, related posts.
  • Medium / Large: main content.
  • Full size: only if essential.

🎨 Custom sizes

Many themes create specific sizes to improve design and SEO. Therefore, your website may generate other new extra sizes.

 


⚡ Image weight and web performance

The weight of images in WordPress is one of the most important factors for loading speed.

⏱️ Why is it so important?

Heavy images slow down the website, increase data consumption, and negatively affect search engine ranking.

📉 Recommended image weight

  • Images in content: less than 300 KB.
  • Featured images: less than 400 KB.
  • Logos and icons: minimum possible weight.
  • Maximum size 2000×2000 px.

❌ Consequences of not optimizing images

  • Slow website.
  • Worse SEO.
  • Poor user experience.
  • More server load.

 


🖼️ Recommended image formats for WordPress

Choosing the right format improves visual quality and reduces weight.

📷 JPG

Ideal for photographs. Good quality with reduced weight. Recommended for general use.

🎨 PNG

Useful only if you need transparency or graphics with flat colors.

🚀 WebP

Modern format. Low weight, good quality, and supports transparency. Recommended for general use if you optimize the website for SEO.

🎞️ GIF and SVG

  • GIF: simple animations.
  • SVG: icons and logos that need transparency and maximum definition (like a logo with typography). WordPress blocks this format for security reasons. Install a plugin that allows uploading this type of file.

 


✅ Good SEO practices before uploading images

📐 Resize images

Do not upload images larger than necessary. The maximum size supported by WordPress is 2000×2000 px. If you upload a larger file, WordPress will resize it, save the original, and use the resized one, taking up more server space.

🗜️ Compress images

Reduce the weight before uploading them using tools or plugins. Besides size, you must compress to further reduce weight.

📝 Use optimized file names

Correct example: wordpress-image-optimization.jpg

♿ Add alt text

Improves accessibility and helps with Google Images SEO.

 


🔧 Automatic optimization in WordPress

🔌 Image optimization plugins

They allow you to automatically compress images when uploading them.

⚖️ Prior vs automatic optimization

The ideal is to optimize before uploading and use plugins as support.

💤 Lazy load

By installing a plugin with the “Lazy Load” function, WordPress will load images only when they become visible on the screen as you scroll down, thus improving performance.

 


🚨 Common mistakes in the media library

  • ❌ Uploading images directly without optimizing (like images straight from a camera or phone).
  • ❌ Always using the full size.
  • ❌ Uploading duplicate files.
  • ❌ Not using alt text.

 


📋 SEO checklist before uploading an image

✔️ Quick image optimization checklist for WordPress

  • ✅ Image resized to the correct dimensions.
  • ✅ Weight under 300–400 KB (although it will always depend on the type of use).
  • ✅ Appropriate format (JPG, PNG, or WebP).
  • ✅ Image compressed.
  • ✅ File name optimized for SEO.
  • ✅ Alt text added.
  • ✅ No unnecessary use of full size.
  • ✅ File not duplicated in the library.

 


🏁 Conclusion

Proper optimization of the media library in WordPress improves loading speed, SEO, and user experience. By following these good practices and using optimized images, your website will be faster, more efficient, and more professional.

Related topics

Module 6.4 Elementor: Designing professional headers and footers


See more

Module 6.3 Elementor: Essential widgets and mastering the structure


See more

Module 6.2 Elementor: Getting started with the Elementor editor


See more

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Made with 💔 in Europe
Free Palestine
LGBTQ+ friendly
Technology, code, retro vibes, and free thinking until the adventure ends.
Exploring bits and pixels since 2012.
EnglishEnglish▼
  • EspañolEspañol
  • FrançaisFrançais
  • PortuguêsPortuguês

Web development:
Freelance Web Developer

    • Mentazen.com - News, videogames, tutorials, web and retro!