Changeset 3408270
- Timestamp:
- 12/02/2025 04:43:22 PM (4 months ago)
- Location:
- mhm-forceimagemagick/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (4 diffs)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mhm-forceimagemagick/trunk/README.txt
r3408252 r3408270 5 5 Requires at least: 4.5 6 6 Tested up to: 6.9.0 7 Stable tag: 1. 0.67 Stable tag: 1.1.0 8 8 License: GPL v3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 10 11 Forces WordPress to use ImageMagick instead of the PHP GDimage library. This plugin is no longer maintained.11 Forces WordPress to use the ImageMagick image library. This plugin is no longer maintained. 12 12 13 13 == Description == … … 15 15 **This plugin is no longer actively maintained.** 16 16 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. 17 Forces 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. 20 18 21 19 If 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. … … 29 27 == Changelog == 30 28 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 31 34 = 1.0.6 = 35 32 36 * Confirmation of compatibility with WordPress 4.7. 33 37 * No functional changes. 34 38 35 39 = 1.0.5 = 40 36 41 * No functional changes. 37 42 * Improve PHP function naming. … … 39 44 40 45 = 1.0.4 = 46 41 47 * Extend README. 42 48 * Update author website link to new site. 43 49 44 50 = 1.0.3 = 51 45 52 * Confirms compatibility with WordPress 4.6. 46 53 * Fixes erroneous README. -
mhm-forceimagemagick/trunk/index.php
r2816731 r3408270 1 1 <?php 2 2 /* 3 Plugin Name: Force ImageMagick (UNMAINTAINED)3 Plugin Name: Force ImageMagick 4 4 Plugin 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.5 Description: Forces WordPress to use ImageMagick instead of the PHP GD image library. 6 6 Author: Mark Howells-Mead 7 Version: 1. 0.68 Author URI: https:// markweb.ch/7 Version: 1.1.0 8 Author URI: https://sayhello.ch/ 9 9 */ 10 10 11 11 class MHMForceImageMagick 12 12 { 13 public function __construct() 13 /** 14 * Initializes the plugin by adding the necessary filter. 15 * 16 * @return void 17 */ 18 public function run(): void 14 19 { 15 $this->key = basename(__DIR__); 16 add_filter('wp_image_editors', array($this, 'allowedEditors')); 20 add_filter('wp_image_editors', [$this, 'allowedEditors'], 10, 0); 17 21 } 18 22 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 20 29 { 21 return array('WP_Image_Editor_Imagick');30 return ['WP_Image_Editor_Imagick']; 22 31 } 23 32 } 24 33 25 new MHMForceImageMagick(); 34 $plugin_mhm_forceimagemagick = new MHMForceImageMagick(); 35 $plugin_mhm_forceimagemagick->run();
Note: See TracChangeset
for help on using the changeset viewer.