Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
Plugin Name: VIPS image editor
Plugin URI:
Description: High performance WordPress image processing with VIPS
Version: 1.1.0
Author: Johannes Siipola
Author URI:
License: GPLv2 or later
License URI:
// exit if accessed directly
if (!defined('ABSPATH')) {
// Check if we are using local Composer
if (file_exists(__DIR__ . '/vendor')) {
require __DIR__ . '/vendor/autoload.php';
include 'class-image-editor-vips.php';
add_action('admin_notices', function() {
if (!extension_loaded('vips')) {
echo '<div class="notice notice-warning"><p>';
echo __("VIPS PHP extension is not loaded. VIPS image editor can't function without it. VIPS editor has been disabled.", 'vips-image-editor');
echo '</p></div>';
add_filter('wp_image_editors', function($image_editors) {
if (extension_loaded('vips')) {
array_unshift($image_editors, 'Image_Editor_Vips');
return $image_editors;
}, 20);