WP Manifestindependent plugin directory
manifest / media / kntnt-ollie-media-settings

Kntnt Media Settings

Set WordPress image sizes for Ollie layouts and lock media settings to prevent accidental changes.

by Kntnt · github.com/kntnt/kntnt-ollie-media-settings · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kntnt/kntnt-ollie-media-settings/archive/refs/heads/main.zip

Kntnt Ollie Media Settings aligns WordPress image sizes with layouts using 740-pixel content and 1260-pixel wide containers. Generic image sizes may not match those containers, and manual media-setting changes can create inconsistent uploads. This plugin enforces a fixed image-size set, adds dimensions for high-density displays, organizes new uploads into year/month folders, and locks the Media settings screen.

Image sizes

WordPress size name Dimensions Cropping
thumbnail 150 × 150 px Hard crop
medium Up to 400 × 400 px Proportional
medium_large 740 px wide, unrestricted height Proportional
large Up to 1260 × 1260 px Proportional
1536x1536 Up to 1480 × 1480 px Proportional
2048x2048 Up to 2520 × 2520 px Proportional

The last two names retain WordPress’s standard identifiers but use different dimensions. Actual generated images depend on source dimensions and WordPress image processing.

Behavior

  • Intended for the stated Ollie dimensions; it does not read dimensions dynamically from the theme and does not require Ollie to be active.
  • Forces media options at runtime and re-registers the two additional sizes on init.
  • Removes Settings → Media and rejects direct access with HTTP 403, including for administrators.
  • Disables WordPress client-side media processing through wp_client_side_media_processing_enabled on versions providing that filter. Cimo is not a dependency.

Existing images are not regenerated and existing uploads are not moved. Regenerate thumbnails separately to apply these sizes to older images. Removing the plugin restores the underlying saved settings for subsequent requests; generated files remain.

An MU installation applies option filters before ordinary plugins load. With a regular installation, another plugin reading media options earlier can see the saved values instead.

Installation

Requires WordPress and PHP 8.1 or later, plus the plugin-specific dependencies described above.

As a must-use (MU) plugin

  1. Download this repository using Code → Download ZIP and extract it.
  2. Connect to your site using SFTP, SSH, or your hosting file manager.
  3. Create wp-content/mu-plugins/ if it does not exist.
  4. Copy kntnt-ollie-media-settings.php directly into that directory. WordPress does not automatically load PHP files inside MU-plugin subdirectories.
  5. The plugin loads automatically without activation and appears under Plugins → Must-Use.

As a regular WordPress plugin

If you prefer a regular plugin or do not have access to the MU-plugin directory, you can install this plugin normally:

  1. Download the repository ZIP using Code → Download ZIP.
  2. In WordPress, go to Plugins → Add New Plugin → Upload Plugin.
  3. Select the ZIP, click Install Now, and then Activate Plugin.

You need permission to install plugins. Install only one copy: remove the MU copy before activating a regular copy, or deactivate and remove the regular copy before installing it as MU.

Updates and removal

This repository does not include an automatic updater. To update an MU installation, replace its PHP file. For a regular installation, upload the new ZIP and use WordPress’s replacement option. To remove an MU installation, delete its PHP file; for a regular installation, deactivate and delete it in Plugins. Follow any plugin-specific setup or removal steps above.

License

Copyright (C) 2026 Kntnt.

Licensed under the GNU General Public License, version 2 or (at your option) any later version (GPL-2.0-or-later). See LICENSE for the full GPL v2 text.