Plugin Directory

Changeset 3408270


Ignore:
Timestamp:
12/02/2025 04:43:22 PM (4 months ago)
Author:
markhowellsmead
Message:

Compatibility 6.9.0

Location:
mhm-forceimagemagick/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mhm-forceimagemagick/trunk/README.txt

    r3408252 r3408270  
    55Requires at least: 4.5
    66Tested up to: 6.9.0
    7 Stable tag: 1.0.6
     7Stable tag: 1.1.0
    88License: GPL v3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 Forces WordPress to use ImageMagick instead of the PHP GD image library. This plugin is no longer maintained.
     11Forces WordPress to use the ImageMagick image library. This plugin is no longer maintained.
    1212
    1313== Description ==
     
    1515**This plugin is no longer actively maintained.**
    1616
    17 Forces WordPress to use ImageMagick instead of the PHP GD image library. This allows EXIF and IPTC data to be retained - for example, those containing GEO data and copyright information - but can lead to slightly larger file sizes.
    18 
    19 This plugin only instructs WordPress to use the ImageMagick library. It doesn't change how (or when) WordPress generates images, and it doesn't provide any additional functionality for creating or resizing images.
     17Forces WordPress to use the ImageMagick image library. This plugin only instructs WordPress to use the ImageMagick library. It doesn't change how (or when) WordPress generates images, and it doesn't provide any additional functionality for creating or resizing images.
    2018
    2119If you need to know more about ImageMagick, then visit [the official website](http://www.imagemagick.org/). Full information about [Post Thumbnails](https://codex.wordpress.org/Post_Thumbnails) and [image size and quality](https://codex.wordpress.org/Image_Size_and_Quality) are in the WordPress Codex.
     
    2927== Changelog ==
    3028
     29= 1.1.0 =
     30* Update tested up to version to 6.9.0.
     31* Remove unnecessary $key variable on the class.
     32* Code syntax improvements.
     33
    3134= 1.0.6 =
     35
    3236* Confirmation of compatibility with WordPress 4.7.
    3337* No functional changes.
    3438
    3539= 1.0.5 =
     40
    3641* No functional changes.
    3742* Improve PHP function naming.
     
    3944
    4045= 1.0.4 =
     46
    4147* Extend README.
    4248* Update author website link to new site.
    4349
    4450= 1.0.3 =
     51
    4552* Confirms compatibility with WordPress 4.6.
    4653* Fixes erroneous README.
  • mhm-forceimagemagick/trunk/index.php

    r2816731 r3408270  
    11<?php
    22/*
    3 Plugin Name: Force ImageMagick (UNMAINTAINED)
     3Plugin Name: Force ImageMagick
    44Plugin URI: https://wordpress.org/plugins/mhm-forceimagemagick/
    5 Description: Forces WordPress to use ImageMagick instead of the PHP GD image library. This allows EXIF and IPTC data to be retained - for example, those containing GEO data and copyright information - but can lead to slightly larger file sizes.
     5Description: Forces WordPress to use ImageMagick instead of the PHP GD image library.
    66Author: Mark Howells-Mead
    7 Version: 1.0.6
    8 Author URI: https://markweb.ch/
     7Version: 1.1.0
     8Author URI: https://sayhello.ch/
    99*/
    1010
    1111class MHMForceImageMagick
    1212{
    13     public function __construct()
     13    /**
     14     * Initializes the plugin by adding the necessary filter.
     15     *
     16     * @return void
     17     */
     18    public function run(): void
    1419    {
    15         $this->key = basename(__DIR__);
    16         add_filter('wp_image_editors', array($this, 'allowedEditors'));
     20        add_filter('wp_image_editors', [$this, 'allowedEditors'], 10, 0);
    1721    }
    1822
    19     public function allowedEditors()
     23    /**
     24     * Returns an array of allowed image editors, forcing ImageMagick to be used.
     25     *
     26     * @return array List of allowed image editors.
     27     */
     28    public function allowedEditors(): array
    2029    {
    21         return array('WP_Image_Editor_Imagick');
     30        return ['WP_Image_Editor_Imagick'];
    2231    }
    2332}
    2433
    25 new MHMForceImageMagick();
     34$plugin_mhm_forceimagemagick = new MHMForceImageMagick();
     35$plugin_mhm_forceimagemagick->run();
Note: See TracChangeset for help on using the changeset viewer.