Skip to content

OG Perfect Images Retina 2x

What it does

OG Perfect Images Retina 2x takes care of the image basics WordPress leaves to you. Inside WordPress the plugin is called OG Picture Perfect.

  • Image sizes. See every size WordPress, your theme and your plugins create. Switch off the ones you do not use and add your own.
  • Regenerate thumbnails. Rebuild thumbnails for one image or the whole library after you change sizes or themes.
  • Retina images. Build sharp @2x copies of your thumbnails for high-density screens, and serve them through your page's srcset.
  • WebP or AVIF. Make lighter copies of your images in a modern format, on your own server. Your originals stay as they are.
  • Easy IO. Or let the Easy IO image CDN convert, resize and deliver your images for you.
  • AI features. Upscale images that are too small for a size, on your own server or with the service you choose, and let an AI Assistant suggest which sizes to keep.
  • Replace an image. Swap the file behind a media item without changing its links.

Your originals are safe

The plugin creates extra files next to your uploads. It does not change the original image you uploaded.

Who it's for

  • Site owners who want fewer, better image files and faster uploads.
  • Photographers and shops whose images must look sharp on phones and laptops with high-density screens.
  • Anyone who has changed theme and needs every thumbnail rebuilt.

Install and activate

  1. Buy the plugin from the OG Perfect Images Retina 2x product page.
  2. Install it and activate your licence key. The steps are the same for every OG plugin: see Install and activate.
  3. Open OG Nexus > OG Picture Perfect. If OG AI Core is installed, the menu is called OG AI Core and OG Picture Perfect is listed with your other OG plugins.

You need an administrator account to open the settings. Settings save as soon as you change them.

When your licence is active, the Pro features download automatically and switch on. Options marked Pro in this guide stay locked until then.

Overview

The first tab. It shows:

  • Set-up guide. A short walk-through. It asks whether you need retina images and how you want to make WebP or AVIF files, then switches on the right modules for you.
  • Modules. Switch whole features on or off. Each module adds its own tab.
Module What it does
Image Sizes Control which thumbnail sizes WordPress generates. On by default.
Retina Images Create @2x thumbnails for Retina and HiDPI screens. Off by default.
AI Features Upscale images that are too small for some sizes, on your own server or with the service you choose. Off by default.
Easy IO Serve optimised images through a CDN that handles WebP, AVIF, compression and delivery.
Newer formats Convert your images to WebP or AVIF on your own server. Choose Use WebP or Use AVIF.
Image Tools The dashboard where you build, regenerate and manage images, one by one or in bulk. On by default.

Easy IO or Newer formats, not both

Easy IO already converts images to WebP and AVIF. When you link Easy IO, Newer formats switches off.

  • Status. Which image libraries your server has (GD or Imagick, for WebP and AVIF) and, after Check Optimizers, which optimisation tools it offers.
  • Charts. How many sizes have retina or WebP turned on, and your sizes grouped by width.

Image Sizes

The list of every registered size, with its name and dimensions. Untick a size to stop WordPress creating it for new uploads. A disabled size also gets no retina or WebP copy.

  • AI Assistant. Asks OG AI Core to review your sizes and suggest which to keep. You see each size with its current state, the recommendation and a short reason. Click Apply to accept or Cancel to leave things as they are. This button needs OG AI Core installed and active.
  • Your own sizes. Click Add New to create a size. Give it a Name, a Width, a Height and a Crop setting: no crop, centre crop, or a crop position such as Left-Top or Center-Bottom. Edit or delete your own sizes from the same list.

Image Tools

The dashboard for your Media Library images. Filter the list with All, Retina Issues, Optimize Issues and Ignored, search by title, and choose how many items to show per page.

Each row shows the image's thumbnails and whether each retina or WebP file EXISTS or is MISSING. The row menu offers:

Action What it does
Optimize Checks the thumbnails and builds only the missing ones. It keeps the thumbnails you already have, including AI-generated ones.
Regenerate Thumbnails Uses the WordPress core function. It deletes the current thumbnails and makes new ones. AI-generated thumbnails are lost.
Generate Thumbnails (AI) Uses AI to create the thumbnails the original is too small for. Needs the AI Features module.
Build Retina Images Deletes and rebuilds the @2x copies for this image.
Build WebP or Build AVIF Deletes and rebuilds the modern-format copies.
Delete Retina / Delete WebP Removes those copies.
Ignore / Un-Ignore Leaves this image out of the issue lists and out of automatic retina and WebP building.
Replace Image Drop a new file to replace this one. Shown when Image Replace is on.

All Bulk Actions run on every image (or every image with an issue). Selected Bulk Actions run on the images you tick. A progress bar shows how far a bulk run has got. You can leave it running in the tab.

The Regenerate Thumbnails box on each media item's edit screen does the same for one image.

Retina Images

Shown when the Retina Images module is on.

Image Sizes

Tick the sizes that should get a retina copy. AI Assistant suggests which sizes need retina. It points out sizes whose @2x width another size already covers, because srcset serves that larger image anyway.

Build Automatically builds retina images every time thumbnails are created or regenerated, for example on upload.

Retina needs a big enough original

A @2x copy needs an original at least twice the size's width and height. If the original is too small, the image appears under Retina Issues. Turn on Upscale in AI Features to fill the gap.

Basics

Delivery Method controls how retina images reach your visitors.

Method When to use it
Responsive Images Recommended. Adds the retina files to WordPress's own srcset. No script needed.
Picturefill (Hybrid) For themes and plugins that do not use srcset. Rewrites image tags on the page and loads a small polyfill.
Retina.js (Client-side) Swaps images in the browser with a script.
HTML Rewrite (Not Recommended) Rewrites the page on the server for visitors whose browser reports a high-density screen (read from a cookie).
None Builds the files but does not add them to your pages.

A site that used the old Retina-Images method moves to Responsive Images automatically.

Over HTTP Check (Pro) checks that retina files exist on a remote server. Use it only when your images are hosted somewhere other than WordPress. It slows pages down a lot, so you need page caching with it.

Full-size images

Full-Size Retina (Pro) adds retina support for the full-size image. It also adds an Upload Retina for Full-Size button in Image Tools and an uploader on Media > Add New. Upload an image twice the size of your full-size image. The plugin keeps it as the retina copy and builds the normal full-size image and its thumbnails from it.

PictureFill

Shown only when the delivery method is Picturefill.

  • Keep IMG SRC. Keeps the src attribute so search engines still find your images. Browsers may then download two images.
  • CSS Background (Pro). Replaces inline CSS background images with their retina version.
  • Polyfill Script (Pro). Do not load stops the plugin loading the Picturefill script, if your theme already loads it. Only browsers with srcset support then show retina images.

WebP or AVIF

Shown when the Newer formats module is on. The tab is called WebP or AVIF, depending on your choice in Modules.

  • Image Sizes. Tick the sizes that should get a WebP or AVIF copy.
  • Build Automatically. Builds the copies every time thumbnails are created or regenerated.
  • Delivery Method. Responsive Images puts the WebP or AVIF files into srcset and image src URLs. None builds the files without using them.
  • Ignored Extensions. File types to skip, separated by commas. The default is gif, svg, bmp, tiff.
  • Full-size images (Pro). Builds a WebP or AVIF version of the full-size image too, and adds a column for it in Image Tools.

Copies sit next to the original with the extension added, for example photo.jpg.webp and photo@2x.jpg.webp.

Easy IO

Shown when the Easy IO module is on. Easy IO is an image CDN. It picks the best format for each browser, resizes on the fly and serves images from servers close to your visitors. Processing happens on Easy IO's side, not on your server.

  1. Create an Easy IO account with the link in the Connection box.
  2. Click Verify & Enable Easy IO.
  3. Status shows your CDN domain once it is linked. Stats shows bandwidth use and image size reduction.

Lossless Quality keeps images visually identical to the original while still optimising them. Disable Easy IO unlinks your site.

AI Features

Shown when the AI Features module is on.

Settings

Service picks who does the upscaling. Choose the one that fits how much you want to spend and where your images may go.

Service Where the work happens Account or install
This server (built in) Your own server Nothing to install
This server: Real-ESRGAN Your own server Install Real-ESRGAN (free)
Your own AI server A machine you own Stable Diffusion WebUI or Forge (free)
OG AI Core The AI provider set in OG AI Core OG AI Core with an image model
Replicate Replicate Your own Replicate account
Stability AI Stability AI Your own Stability AI account
Claid.ai Claid Your own Claid account

Each service upscales the image, then OG Picture Perfect brings it to the size it needs and keeps the original's format. A result that is not larger than the original is not used.

  • This server (built in). A high-quality resize with light sharpening, using Imagick (or GD) on your server. It is free and nothing leaves your server, but it does not add new detail the way an AI upscaler does. The screen says whether your server is ready.
  • This server: Real-ESRGAN. Real-ESRGAN is a free, open-source AI upscaler that runs on your own server.

    1. On the Real-ESRGAN releases page, download the realesrgan-ncnn-vulkan zip for your server (ubuntu for Linux, windows or macos). Take the one that includes the models folder, for example realesrgan-ncnn-vulkan-20220424-ubuntu.zip.
    2. Unzip it on the server, keep the models folder next to the program, and make the program executable (chmod +x realesrgan-ncnn-vulkan).
    3. Enter its full path in Program Path, for example /opt/realesrgan/realesrgan-ncnn-vulkan. After the page reloads, the screen says whether it is ready.
    4. Pick a Model: Photos, Illustrations and anime, or Fast, lighter. Leave GPU empty unless you want a particular graphics card.

    It needs Vulkan. On a server without a graphics card, install the Mesa Vulkan CPU driver (on Debian or Ubuntu: apt install mesa-vulkan-drivers); it works, but more slowly, and the processor needs AVX2 and F16C (most processors from 2013 on). On an older processor the screen says so; use Your own AI server or This server (built in) instead.

    Without a graphics card, pick Fast, lighter

    On a processor alone, Real-ESRGAN is slow. On a 4-core server, a 512px image took about 15 seconds with Fast, lighter and about 5 minutes with Photos. Use Photos with a graphics card, or for a few important images. Your host must also let PHP run programs (proc_open). More about the project: Real-ESRGAN on GitHub.

    • Your own AI server. Uses the upscalers of Stable Diffusion WebUI or WebUI Forge on this server or another machine you own. Start it with the --api option (add --listen when it runs on another machine). Enter its Server Address (for example http://127.0.0.1:7860), the Upscaler name as its Extras tab shows it (for example R-ESRGAN 4x+), and a Login (user:password) only if you started it with --api-auth.
    • OG AI Core. Uses the image model chosen in OG AI Core > Images. You need OG AI Core with an image model set up.
    • Replicate. Runs the open-source Real-ESRGAN model on Replicate with your own account; Replicate bills you per image. Create an API Token at replicate.com.
    • Stability AI. The Stability AI Fast Upscaler (4x) with your own account; it uses your Stability AI credits. Create an API Key at platform.stability.ai.
    • Claid.ai. An image upscaling service with its own account. Enter your API Key. Leave Host as it is unless you know you need to change it. Remote Upload chooses Upload Data (sends the image file, for private or local sites) or Shared URLs (sends the image address, for public sites). Restoration Type (such as Smart Enhance, Digital Art or Photo) and Upscale Type (such as Bounds, Cover or Crop) describe your images and how to fit them.

Features

  • Upscale. Upscales the image when a thumbnail size is bigger than the original.
  • Generate Retina. Upscales to create the full-size retina image, so you do not need a high-resolution original. It needs Retina Images and Full-Size Retina turned on.

Settings

General

Setting What it does
Image Threshold > Disable Since WordPress 5.3, images wider or taller than 2560px are resized and renamed with -scaled. Tick to keep the original full size.
GIF Thumbnails > Disable Stops WordPress making thumbnails for GIFs. Keeps the animation and saves space. On by default.
AVIF Thumbnails > Disable Stops WordPress making thumbnails for AVIF uploads.
WebP Thumbnails > Disable Stops WordPress making thumbnails for WebP uploads.
Hide Admin Messages Hides the warnings the plugin shows in wp-admin.

Interface

Setting What it does
Image Replace Adds Replace Image to the Media Library and Image Tools. Drag and drop a new file to replace an image.
Retina Column Adds a Retina column to the Media Library list.

Maintenance has Export Settings and Import Settings, to copy your setup to another site.

Developer options

Setting What it does
Responsive Images > Disable Turns off WordPress's own responsive images (srcset). For developers only.
Optimize Features > Enable (Beta) Shows an Optimize column and buttons that compress images with the tools on your server, if it has any.
Legacy Build Thumbnails Adds a button that rebuilds thumbnails with WordPress's built-in functions. Slower, and deletes all thumbnails first. Use it only if the normal method gives you trouble.
CDN Domain (Pro) Your CDN hostname. Your site's domain is swapped for it in image URLs. Locked while Easy IO is active.
All Image URLs Shown when a CDN is set. By default only srcset URLs go through the CDN. Tick to also rewrite single image URLs, such as the src, og:image and download links. Clear the cache of any plugin that stores image URLs afterwards.
Dev Tools Adds the Dev Tools tab.

Dev Tools

  • Debug Mode. Loads debug scripts and forces retina rendering, so you can test on a normal screen. For developers only.
  • Logs. Writes what the plugin does to a log file in your uploads folder. Use Refresh Logs and Clear Logs to read or empty it.

License

Enter and check your licence key. See Install and activate.

Common tasks

Stop WordPress making sizes you do not need

  1. Go to OG Nexus > OG Picture Perfect > Image Sizes.
  2. Untick the sizes you do not use. Click AI Assistant if you are not sure.
  3. New uploads skip those sizes. To clean up older images, go to Image Tools and run Regenerate Thumbnails from All Bulk Actions.

Turn on retina images

  1. In Overview > Modules, turn on Retina Images.
  2. Open the Retina Images tab and tick the sizes that need retina.
  3. Leave Delivery Method on Responsive Images and tick Build Automatically.
  4. Go to Image Tools and run Build Retina Images for All Entries.

Serve WebP or AVIF from your own server

  1. In Overview > Modules, turn on Newer formats and pick Use WebP or Use AVIF.
  2. On the new tab, tick the sizes, set Delivery Method to Responsive Images and tick Build Automatically.
  3. In Image Tools, use the bulk action that builds WebP or AVIF for all entries.
  1. In Settings > Interface, turn on Image Replace.
  2. In Media > Library (list view), hover over the image and click Replace Image. Or use the row menu in Image Tools.
  3. Drop the new file. The thumbnails are rebuilt and the links stay the same.

Add a custom image size

  1. Go to Image Sizes and click Add New under Your own sizes.
  2. Enter a Name, Width, Height and Crop.
  3. Save, then regenerate thumbnails for the images that need the new size.

FAQ and troubleshooting

An image is listed under Retina Issues. The original is too small to make a @2x copy for one or more sizes. Upload a larger original, turn off retina for that size, use Upscale, or click Ignore.

Retina images do not show on my site. Check the Delivery Method. With Responsive Images, your theme must output images through WordPress so they get a srcset. If it does not, try Picturefill. Clear your page cache after any change.

The AI Assistant button says OG AI Core is needed. Install and activate OG AI Core. For upscaling with OG AI Core, also choose an image model in OG AI Core > Images.

The WebP or AVIF options are missing. Your server needs GD or Imagick with WebP or AVIF support. Look at Status on the Overview tab. AVIF with GD needs PHP 8.1 or later.

Newer formats switched itself off. Easy IO is linked. It already handles WebP and AVIF. Unlink Easy IO if you would rather convert on your own server.

Can I use retina and WebP together? Yes. Turn on both modules and the plugin builds @2x WebP or AVIF copies too.

Will it slow down my site? The work happens when you upload or regenerate. On the front end, Responsive Images only adds entries to srcset. HTML Rewrite and Over HTTP Check do slow pages, which is why they are not recommended.

Uninstalling

  • Deleting a media item also deletes its retina, WebP and AVIF copies.
  • Deactivating stops all processing and removes the plugin's rewrite rules.
  • Deleting the plugin does not remove its settings or the files it made. The ogretina_* options, the image meta and the @2x, WebP and AVIF files in your uploads folder stay. Delete them yourself if you no longer want them. See the developer's guide for the names.