Is your Moodle homepage taking too long to load? Large, unoptimized images could be part of the problem, especially if your site uses image-heavy hero sections, featured content, and course thumbnails.
Modern Moodle themes like Lumo include hero layouts, featured panes, and other visual sections that help create an engaging learning experience. However, uploading unnecessarily large image files can increase page weight and slow down loading, particularly for learners on mobile devices or slower connections.
While Moodle performance can be affected by many factors, image optimization is one of the simplest improvements you can make without changing your server configuration or installing additional plugins.
In this guide, we’ll explain how to optimize images for better Moodle page loading performance, using a real example from a Lumo customer. We’ll also share recommended image sizes and free compression tools you can use.
1. Why Large Images Can Slow Down Moodle
When you upload large images to your Moodle theme settings, they may be served at their original file size, even when displayed at much smaller dimensions. For example, a 1920 × 1080 PNG weighing 2MB can add unnecessary download time to your homepage, especially for mobile users.
Oversized images can cause:
- Longer page loading times
- Delayed hero and featured section rendering
- Slower loading on phones and tablets
- Increased bandwidth usage
Even a well-optimized Moodle theme cannot fully compensate for unnecessarily large image files. If your homepage contains several large images, reducing their file sizes is a good place to start.
2. Real Example: What We Found While Helping a Lumo Customer
While helping a Lumo customer resolve a theme issue, we noticed something unrelated to the original problem:
All of their Featured Section images were extremely large, with most exceeding 2MB.
The images looked good, but their file sizes were much larger than necessary. For Lumo’s featured pane blocks, images around 800px wide are generally sufficient for the intended layout.
Here’s what we recommended:
- Resize featured pane images to around 800px wide
- Compress images using free tools such as TinyPNG or ImageCompressor
One of their original images was over 2MB. After resizing and compression, we reduced it to just 105KB without any noticeable loss in visual quality.
That’s a reduction of approximately 95% in file size for a single image. When several large images are used on the same homepage, these savings can make a noticeable difference to loading performance.
3. Recommended Image Sizes for Lumo Users
If you’re using our Lumo Moodle theme, the following image dimensions are a useful starting point for balancing visual quality and loading performance.
Home Hero Section
Side image (Side Image Mode): 1000 × 1000 px (square images generally work best)
Full-width background image: 1920 × 1080 px (minimum recommended width: 1600 px)
Format:
– WebP or JPG for standard full-width hero photos
– WebP or PNG for side images that require transparency, such as creative cutouts
Home Featured Section (Pane Blocks)
Recommended size: 800 × 460 px
Format:
– WebP or JPG for standard photos
– WebP or PNG if transparency is required
Home Category Section
Recommended size: 300 × 300 px
Format:
– WebP or JPG for photos
– WebP or PNG for graphics that require transparency
– SVG for simple icons or flat graphics, where supported
Tip: WebP is a great choice for optimizing Moodle images because it often produces smaller files than JPG or PNG at comparable visual quality. It also supports transparency, making it suitable for both photos and creative graphics. We’ve tested WebP successfully across all image upload settings in our Lumo theme for Moodle 5.3. JPG and PNG remain good alternatives. If you’re using a different Moodle theme or version, check whether its image settings support WebP. The file sizes above are practical targets rather than strict limits, so always check the final image quality.
4. How to Resize and Compress Images
Optimizing your Moodle images is straightforward. The key is to resize them to suitable dimensions before compressing them.
Step 1: Resize your image
Start by checking where the image will be used. For example, if you’re uploading an image to Lumo’s Featured Section, resize it to approximately 800 × 460 px instead of uploading a much larger original.
Step 2: Compress the image
Once you’ve resized your image, use a compression tool to reduce its file size while keeping the visual quality acceptable.
Here are three free tools worth trying:
TinyPNG
A simple tool for compressing JPG, PNG, and other supported image formats. Useful when you want quick results without adjusting lots of settings.
ImageCompressor
Useful for compressing multiple images. It also provides controls for adjusting image quality.
Squoosh
A browser-based image optimization tool that lets you resize images, compare quality, and export them in different formats, including JPG, PNG, and WebP.
Step 3: Check the results before uploading
Compare the optimized image with the original to make sure it still looks sharp at its intended display size. Pay particular attention to text, logos, and other fine details.
Then upload the optimized version to your Moodle site.
In our Lumo customer example, we reduced a single image from over 2MB to approximately 105KB. The exact savings will depend on the original image, its dimensions, and the compression settings you choose.
Conclusion
If your Moodle homepage is loading slowly, oversized images are one of the first things worth checking, especially if your theme uses large hero images or multiple featured content sections.
By resizing and compressing images before uploading them, you can significantly reduce page weight and improve loading performance without making changes to your Moodle server or installing additional plugins.
Of course, image optimization won’t solve every Moodle performance issue. Slow server responses, caching problems, and other technical factors may also need attention. However, optimizing your images is a simple, practical improvement that can make a real difference.
If you’re using our Lumo Moodle theme, following the recommended image sizes above can help you create a professional-looking homepage while keeping unnecessary image downloads to a minimum.