Skip to main content

Optimising images (Pro)

Pro version. Image optimisation is part of the Pro version. What the Free version does is covered under Free version and Pro version.

Besides cleaning up, Media Organizer can also shrink and edit images. BothThat areis reversible and run strictly locally — no image is sent to an online service.

The optimisation report

The report shows images with optimisation potential, measured against the thresholds from the options. It is a recommendation — nothing is changed until you trigger it.

The optimisation report with one file and the reasons for flagging itThe optimisation report with one file and the reasons for flagging it
For every file it says why it was flagged — here for three reasons at once.

Typical reasons:

  • Too large (file size) — exceeds the configured maximum file size (default 500 KB).
  • Too large (dimensions) — exceeds the maximum edge length (default 2500 px).
  • Not a modern format (WebP/AVIF) — a raster image that would be considerably smaller as WebP or AVIF.
  • Outdated format — BMP or TIFF, for instance.

Two groups — and the difference matters

The report deliberately separates them:

Automatically optimisable. Format and file name stay the same. Existing references stay valid and do not have to be adjusted. This is the safe case.

InOnly thewith editora only.new format. Here an optimisation would change the format (to WebP, for example) and therefore the file name. Existing references still point to the old file and are not switched over automatically. Such images are therefore never touched automatically. Save a WebP copy and switch the references with “Use the WebP copy” (see below).

Triggering optimisation

Select the files and click Optimise. Before that the following applies:

  • The original is backed up (default: jimgo_optimize_backup, outside the web).
  • Nothing is ever scaled up — only down.
  • If the optimisation brings less than the minimum saving (default 10 %), the original stays untouched. No loss of quality for a few kilobytes.
  • Protected files (safelist)protected list) stay untouched and are shown as such in the confirmation dialog.

The images are processed one after another, with a progress display. How long one run lasts before the next begins is set under OptionsImage →optimisation Optimisationsettings → Time per step. The image already started is always finished.

Via Backups you reach the saved originals and can undo an optimisation. Restoring and deleting a backup have to be confirmed by typing the number.

Restoring only replaces a file that is provably still the optimised version. If you have changed the file since, or there is no value to compare it with, it counts as a conflict: the file stays as it is and the backup is kept. Even if replacing fails, there is still a file in that place afterwards.

Optimising from "All files"

The report measures against the configured thresholds — it shows what the extension considers worth optimising. Sometimes you know better: you sort All files by size, see your largest images and want to shrink exactly those.

You can do that right there. Tick the boxes, click Optimise — it is the same backed-up, reversible operation as in the report, with the same settings.

The file list sorted by size, three large images selected, with the Optimise button in the toolbarThe file list sorted by size, three large images selected, with the Optimise button in the toolbar
Sorted by size, the largest images selected — "Optimise" sits in the toolbar.toolbar under "Edit".

Two differences from the report:

  • The list reaches every file. The report shows the first 500 findings; on a large website not every large image appears there.
  • No before/after table. The dialog states the count, the total size and the settings that apply, and then starts. That is deliberate: a preview would have to process every image in full, and the run itself would then do it a second time. With twenty large images the dialog would be minutes away.

If files are included that cannot be optimised — other file types, vector graphics, protected files — the dialog says so and leaves them untouched.

When an image appears as "too large to process"

Shrinking an image needs memory, and the more pixels it has the more it needs. How much may be used is set under Options → OptimisationPerformance → Working memory for image processing (default 128 MB).

What happens then depends on what is installed on the server:

  • With ImageMagick the setting is only a question of speed. An image that does not fit is processed via the hard disk — slower, but it is processed. There is then no image size it fails at.
  • Without ImageMagick it is a limit. Images that do not fit are skipped and shown as "too large to process". At 128 MB that limit sits at around 18 megapixels.

So there are two ways out: raise the value, or ask your host for ImageMagick. Which library was detected is shown under OptionsImage →optimisation Optimisationsettings.

When an image stays unchanged

The confirmation dialog names, for every file, what has happened or will happen to it. If it stays unchanged, the reason is shown next to it — and for the cases that call for an action, the way out as well, as a tooltip on the state.

Shown asWhat is behind it
No gainThe image is already well compressed; re-encoding it would bring nothing. It is left untouched and is not offered again until it changes.
Too large (memory)See the section above.
UnsupportedThe image library cannot read this file — usually a JPEG in the CMYK colour space from a print workflow.
SafelistedOn the protected listThe file is protected. It is deliberately left alone.
Changed on diskThe file has changed since the last scan. Run a scan, then try again.
No image libraryThis is not about the file: the server has neither ImageMagick nor GD, or the one selected under OptionsImage →optimisation Optimisationsettings → Image engine is missing. No image can be optimised then, and the button is not offered at all.
Path rejectedThe path recorded for this file is not a plain path below the site root. The file is left untouched.
Backup failedThe original could not be moved to the backup location. Usually that folder is not writable. Nothing was changed.
Could not be replacedThe optimised image could not be written back to its place. The original was restored.
Took too longThe server did not finish this image within the time set under OptionsImage →optimisation Optimisationsettings → Time limit per image. This is about the server, not the image: an image that does not fit into the working memory allowed is processed from disk, and that takes many times longer. Allow more working memory, or more time. Nothing was changed.
Not recordedThe image was replaced but could not be recorded, so the original was put back. An image is never left optimised without its record.

For the last four the technical reason is in the site's log (see Large websites). After a run, the closing message also says how many files could not be optimised.

External optimisers

If specialised encoders are installed on the server, Media Organizer uses them for compression — that brings considerably more than the built-in libraries:

FormatToolsNote
JPEGjpegoptim—
PNGpngquant, oxipng, OptiPNGpngquant is lossy (the biggest saving); oxipng and OptiPNG are lossless. Automatic prefers pngquant.
WebPcwebpWhen the source is already WebP.
GIFgifsicleKeeps animations.

Media Organizer downloads nothing and ships nothing along — it only uses what is already installed. If a tool is missing, it falls back to the built-in library automatically. Under Options →Image optimisation settings → available optimisers you see what was detected.

TheEditing imageimages editorand saving them as WebP or AVIF

You open the editor fromIn the detail view viaof Edit.

an
The image editor with the crop frame and the sliders for transformation and adjustment
Crop, rotate, scale, quality and image adjustment — with a preview.

Possible are:

    Cropping — freely or with a fixed ratio (1:1, 4:3, 3:2, 16:9, 9:16) Rotating and flipping Scaling to a maximum edge length Settingimage, the qualitytoolbar Adjusting brightness, contrast and saturation

    Here too the original is backed up beforehand; through the backups view you undo the edit.

    Saving:offers two routes with(in differentthe consequences

    File and Image format menus):
    RouteButtonWhat happensReferences
    ReplaceEdit in the Media Manager
    Opens the image in Joomla's Media Manager. There you crop, resize and rotate. Joomla saves the change to the same file. The Pro version keeps the original Formatfirst; andyou fileget nameit stayback theunder same.Backups. stay valid ✓ Save as WebP/WebP, Save as AVIF Creates a new filecopy with a differentnew file name. next to the original. The original remains.stays unchanged. You set the quality in the settings of the image optimisation. stillkeep pointpointing at the original — you“Use havethe toWebP switchcopy” switches them overin manuallyone step

    This is the most common stumbling block. If you saveSaving an image as WebP,WebP first changes nothing changes in your content — it stillkeeps pointspointing at the old file. TheWith occurrencesthe youcopy havenext to adjustthe areoriginal, listedthe detail view offers Use the WebP copy or Use the AVIF copy: a preview shows every place, and after your confirmation all of them point at the copy. How this is safeguarded is described under Changing references (Pro).

    Replace a file

    Replace file in the detail view uploads a new version that takes the place of the old one under the same name and address — for images, PDFs and any other file. Every page that shows the file shows the new version; your content does not change. The new version must have the same file type and pass Joomla's own checks for uploads to the Media Manager. The previous file goes to the backups.

    Remove location data

    Photos from phones and cameras often tell where they were taken. Media Organizer notices this during the scan; the dashboard gives the number, the filter Location data in “All files” shows the photos. Remove location data (list or detail view) deletes the GPS details only. The image is not saved anew: quality, orientation, author and camera data stay exactly as they were. The original is kept in the backups.

    Backups

    Backups hold the original underof "referencedevery by".file Media Organizer changed — optimised, replaced, location data removed, or edited in the Media Manager. The column Why names the reason. Restore original puts it back as long as the file is still the version Media Organizer wrote; a file changed since is not overwritten. Nothing is deleted here by itself.

    Up to version 1.7 Media Organizer had its own image editor in the browser. Since 2.0 Joomla's Media Manager does that, which you know anyway.

    Where to go from here

    Applies to version 1.7.2.0.0.

    Deutsche Fassung