Documentation

Start simple. Scale when you need to.

Akita Media Optimizer is designed to work after activation with WordPress defaults. SSH and server cron are optional, not required.

01

Quick start

  1. 1

    Install and activate the plugin in WordPress.

  2. 2

    Open Media → Optimizer Settings and keep the recommended defaults.

  3. 3

    Upload an image or video normally. The job is added to the background queue automatically.

  4. 4

    Check progress under Media → Media Optimizer.

No server setup required. WordPress cron runs the queue automatically. Dedicated server cron is only an optional reliability upgrade for high-volume sites.

02

Requirements

WordPressCurrent supported release
PHP8.1 or newer
ImagesWebP / AVIF encoder
VideoFFmpeg + FFprobe

Image processing remains available when video tools are missing. The Environment panel reports each capability separately, so one unavailable feature does not hide the rest of the plugin.

03

Image processing

JPEG, PNG, static GIF and WebP sources are analyzed from their real file contents. The plugin creates only formats supported by the server and publishes a derivative only when it meets the configured minimum saving.

  • Full-size and registered WordPress image sizes
  • Theme profiles: hero, card and gallery
  • Alpha transparency preserved in WebP and AVIF
  • Responsive <picture> and CSS image-set() helpers

04

Video processing

Compatible H.264 MP4 uploads are kept as-is. Other video attachments can be converted to a browser-safe MP4, with an optional VP9/Opus WebM source generated from the same attachment. Themes and ACF still store only one media ID.

Recommended defaults
Maximum side   1920 px
Quality        balanced
Maximum FPS    30
Audio          keep
WebM           opt in
Poster         enabled

05

Theme integration

Keep a single attachment ID in the theme or ACF. The plugin resolves optimized media and always retains the original as a fallback.

PHP
<?php
// Responsive image markup with WebP / AVIF sources.
echo akita_media_picture($attachment_id, [
    'profile' => 'hero',
    'alt'     => get_post_meta($attachment_id, '_wp_attachment_image_alt', true),
]);

// Video and poster URLs with safe fallbacks.
$video_url  = akita_media_video_url($attachment_id);
$poster_url = akita_media_poster_url($attachment_id, 'large');

ACF image, gallery and file resolvers are included. WPML translations share optimized files when they point to the same physical source while keeping translated title and alt text.

Open the complete theme integration guide

06

Background processing

The default queue is powered by WP-Cron and requires no SSH access. Jobs are small, repeatable and protected against duplicate execution.

ModeBest forSetup
WP-CronMost WordPress sitesAutomatic
Server cronLow-traffic or larger sitesOptional
WP-CLI poolsAgency and high-volume hostingAdvanced

If WP-Cron is disabled or loopback requests fail, the diagnostics page explains the issue. Image and video queues remain separate so a long video conversion does not block image delivery.