More Work on !Solar

Friday, October 17, 2025

I’ve been adding a display mode to my solar panel analysis program to show the monthly variation in output. It shows the anomaly in percentage terms against the average output for the month. Here are the results for 2012 to May 2025:

Special2P2.webp

Each vertical line represents a month. The very bad result for April 2016 (the line would extend below the graph) is due to the panels being offline for half the month while our roof was replaced. And May 2025 is bad because only the first 10 days are being counted.

It’s interesting to compare this with the following graph, courtesy of the Met Office:

2024_Sunshine_Anomaly_1991-2020.webp

Source:https://www.metoffic … shine-anomaly-graphs
(Select the “Sunshine” option, and “2024” from the drop-down list.)

This shows the sunshine recorded over the whole country for 2024, broken down into regions. Now 2024 was our worst year so far for the panels — it was even worse than 2012, the so-called “year without a summer”.

Look at the 2024 section in the top graph, and note how the only above-average months, coloured orange, were January, June and December. (And even very good results for winter months make very little difference to the yearly figures — we can generate more power in one summer day than the whole of December or January).

Now look at the lower graph, the England results (also in orange). The figures here — remembering they’re for the whole country — are in pretty good agreement, with January and June being the only above-average results in the first half of the year. They disagree about August, which was slightly above average, and December, which was well down for England as a whole. We did better here in Yorkshire, about 9% above average.

WebP on RISC OS

Thursday, October 9, 2025

About WebP

WebP — capitalised thusly — is a graphics format developed by Google intended as a replacement for JPEG, PNG and GIF formats; most modern browsers can handle WebP images. The format supports both lossy and lossless compression, as well as animation and an alpha channel. WebP files may contain metadata (in ICCP, EXIF or XMP formats) such as a thumbnail image and technical details such as the camera settings used.

WebP was first fully released in 2018, and since then has been getting progressively more widespread on the web. It claims to have various advantages over previous formats, chiefly in reduced file size (though there is criticism regarding fidelity). The following table shows how its usage on the web has been increasing, expressed as the percentage of websites which use the format:

2020 2021 2022 2023 2024 2025 (Jan) 2025 (Oct)
0.2% 0.5% 3.0% 6.5% 10.8% 14.9% 17.9%

[Source: https://w3techs.com/ … w/image_format/all/y ]

WebP on RISC OS

The WebP format is now fairly well supported on RISC OS, at least for still images. PhotoDesk (3.23) can load and save them, and there are the free stand-alone conversion applications Spr2WebP and WebP2Spr courtesy of Richard Coleman, who did the hard work — see Links section below. It’s also been reported that the RISC OS port of ImageMagick 7 can be used to convert WebP files to and from sprites.

RISC OS web browsers which can render static WebP images include NetSurf and Iris.

Animation support is much more limited. As far as I know no-one has ported Google’s img2webp to RISC OS; this can produce animations from a sequence of still images. There are however various online converters.

On RISC OS, the Iris browser can render animated WebP files, but NetSurf can’t.

WebP files have an official filetype of &a66, with type name WebP. The extension is “filename.webp”, and the details should be included in your mimemap file. To check:

  • Open a task window (Ctrl-F12)
  • Type:
    mimemap webp

    If you see the message “No MIME mapping found” you need to add it as follows:

  • Type:
    filer_run inetdbase:mimemap
  • Your system’s mimemap should open in an editor window
  • Look for the “image”+”IANA registered” section, and add the following line (the gaps are tabs):
    image/webp	WebP	a66	.webp
  • Save the file; the setting will take effect after the next boot

Examples

I’m using a couple of images to demonstrate WebP. The flowers picture is a 1280×1280 detail from a photo taken in Zambia by a Canon Ixus, so originally a JPEG. The screengrab image (732×714, 24-bit RGB) is from my in-progress app for reporting on our solar panel installation. These were saved as sprites (which is lossless, of course), and then converted into various formats using various apps and settings.

NB: The images below (in WebP format — if you can’t see them your browser doesn’t support the format) are not the actual images used, they’ve been resized and are just for reference. You can download the original sprite files in the Links section below.

flowers-sm.webp
solar-sm.webp
File sizes for flowers image
Format Size (bytes)
Sprite 6,553,656
JPEG (90) 346,795
JPEG (75) 190,146
WebP (Photo) 105,760
WebP (Lossless) 1,632,468
PNG (Paint/Spr2Png) 2,112,447
PNG (PhotoDeskA) 6,566,686
PNG (PhotoDeskB) 3,053,488
File sizes for screengrab image
Format Size (bytes)
Sprite 2,090,648
JPEG (90) 164,906
JPEG (75) 117,820
WebP (Picture) 45,638
WebP (Drawing) 47,360
PNG (Paint/Spr2Png) 73,579
PNG (PhotoDeskA) 2,095,393
PNG (PhotoDeskB) 117,389

The WebP conversions were done with Spr2Webp, using the settings of Photo and Lossless (for the flowers) and Picture and Drawing (the screengrab). You can also use PhotoDesk, but this uses the same code as Spr2Web so the sizes are pretty much identical. Lossless takes longer (but you’ll usually only need to do it once).

The JPEGs were done with Paint, with the quality settings in parentheses.

The PNGs of the flowers are provided for interest only, as you wouldn’t normally save a photo in this format. Paint and Spr2Png produce identical output, with compression set to 9 in both cases. Paint uses RISC OS’ internal PNG library, while Spr2Png has its own converter.

Of more interest are the PNG entries for PhotoDesk. The first, labelled “PhotoDeskA”, uses the default settings when saving a PNG from PhotoDesk, and they are actually larger than the sprite, possibly due to being interlaced. The second (”PhotoDeskB”) has the settings tweaked. This isn’t straightforward, as the save box doesn’t include any options to change parameters. You have to shift-click on the !PhotoDesk app to open it, then on “Resources”, then on “Formats”, then shift-click on “!3PNG”. Open the directory “Options”, then load “spr2png” which should contain just the text “-ia” (without the quotes). Change this to “-ia9” — the “9” increases compression — and save. Doing this improves the compression markedly, though still not as good as Spr2Png. You could probably improve things more by modifying the options; PhotoDesk’s PNG library is very similar to that used by Spr2Png. Or more simply, as PhotoDesk appears to perform negative compression on PNGs, save as a sprite and drop the icon on Spr2Png. Or load it into Paint and save as a PNG from there.

Summary

It’s quite hard to see much visual difference between these images, with the exception of the JPEG (75) version of the screengrab, where artefacts are visible in colour transitions.

For photographs, WebP in Photo mode is the most efficient, for both lossy (JPEG equivalent) and lossless transmission/storage.

For line drawings or screengrabs use WebP with Picture or Drawing presets.

If you need maximum portability under RISC OS, especially legacy versions, JPEG and PNG are still the best options.

Links

WebP on Google, on Wikipedia
Richard Coleman’s conversion apps (webp2spr, spr2webp and webpinfo, along with desktop front ends)
Darren Salt’s Spr2Png and Png2Spr apps
PhotoDesk is available via the !Store app
Example images as used above (4Mb zipped sprites)