ImageMagick エンジン

説明

WordPress の標準 の GD 画像ライブラリのかわりに、ImageMagick を使うことで、リサイズした画像の品質を劇的に改善します。

機能

  • リサイズした画像に埋め込まれたカラープロファイルを保持
  • 変更したい画像をサイズで自動認識
  • 既に存在する画像の再生成も可能 (選択した画像サイズのみ)
  • 画像品質を指定するか、動的に算出された初期値を使用
  • 異なる画像のサイズによって品質かサイズが異なった最適化を割りあて

言語: 英語、フランス語、ドイツ語、スウェーデン語、トルコ語

ImageMagick のバイナリか Imagick PHP モジュールが必要です。

貢献する

コードのリポジトリはここにあります。 https://github.com/orangelabweb/imagemagick-engine/

スクリーンショット

  • 管理画面

インストール

  1. ImageMagick か Imagick PHP モジュールのどちらかをインストール (詳細は FAQ を参照)。
  2. プラグインをダウンロードして、ファイルをフォルダ内に展開し、wp-content/plugin フォルダ内に配置します。
  3. WordPress の管理画面から本プラグインを有効化します。
  4. プラグインの設定ページから ImageMagick の設定を行います。
  5. 既存の画像を再生成し、この新機能を活用します。

質問や問題があれば、サポートの掲示板に書き込みください。

FAQ

どんな違いがありますか?

ImageMagick は、リサイズした画像の品質を大きく向上させることができます。

スクリーンショットで確認するか、自身でお試しください。

新しい画像は、特に画像品質を非常に高く (95以上) 指定する場合に、標準の GD ライブラリを使うよりも、わずかに大きくなる傾向があります。

ImageMagick がインストールされているかを知るには?

PHP モジュールがインストールされていれば、本プラグインをこれを検出します。phpinfo() 関数を使えばご自身でも確認できます。また ImageMagick 実行環境の一般的な配置場所の自動チェックも行います。

Linux/UNIX サーバーのにシェルにアクセスできるのであれば、which convert を使って ImageMagick の実行環境を探すことができます。

ImageMagick のインストールはどう行いますか?

サーバーへの完全なアクセスと、簡単な技術的な知識が必要です。アクセスできない場合、サーバー管理者にお尋ねください。

自分が何を行っているか理解していないなら、自分で行わないようにしましょう。

大半の Linux ディストリビューションには ImageMagick がパッケージされています。また、php5-imagick がパッケージされている場合もあります。PEAR を使って PHP モジュールをインストールできます。

以下で Windows 用を含むバイナリが公開されています。 https://www.imagemagick.org

プラグインを有効すると致命的なエラーが発生しますが?

1and1 など一部のウェブホスティングサービスでは、ファイル .htaccess に対応策を追加する必要があります。

.htaccess ファイルに以下の行を追加する必要があることがあります: AddType x-mapp-php5 .php

この修正を行わない場合、ほかのプラグインでも問題が出ることがあるでしょう。

評価

2022年6月23日
Be careful if you're using a Plugin like Real Media. The ImageMagick Engine does not respect the Directory structure the Real Media Plugin creates. This issue most likely does not affect many people, so it's just a cautionary note to watch out for and not a complaint about the ImageMagick Engine Plugin. Although it would be a nice addition to this plugin as a cool refinement. Also on the subject of PNGs, the compression is not optimal. Again, not the fault of this plugin, but the underlying ImageMagick binary or PHP implementation. Here's the quick data - Original Image 353 KB (3599 x 937), ImageMagick Engine 123 KB (768 x 200), Standard WordPress 117 KB (768 x 200), Corel Product 33 KB (768 x 200). And no, the above is not a mistake or typo when noting the size of the ImageMagick VS Standard Wordpress. And yes, the compression setting could be adjusted in the ImageMagick Engine configuration, but the above reflects the default of 70 (percent). Corel did an outstanding job given the image ended up a quarter of the size of IME or SWP. And zooming and inspecting the image on a 4K monitor showed no discernible difference. So sadly, doing it manually with Corel (or possibly other products) is the way for us to go right now. But still, this is a good plugin and this review is not intended to be derogatory or mean. But there are some refinements and improvements to made with it. Thanks for making the plugin.
2021年10月3日 2 replies
The thumbnail regeneration could be a bit faster though. I have used it for longer than I can remember, at least 5 years.
2020年10月14日
This is the first review i have ever left for any plugin. this is the best free plugin ever it increases quality in uploaded graphics for wordpress. it recognises the changes in php files i am in love with this plugin. thank you thank you
2020年9月6日
Maybe even better. It uses ImageMagick Engine that is installed and allows me to easily regenerate all my images.
2020年1月17日
As a 20 year Linux server administrator, top rated coder on Upwork, and WordPress plugin developer, I am shocked that this plugin does not have at least 1,000,000 installs! Let me explain, if you wish to optimize your images, there are a handful of plugins that can do this for you, however, all of them, except this one, require setting up an API, or some other special remote access if by chance the web server does not have optional PHP programs enabled. The optional PHP program is usually PHP exec. In most cases, web hosts never enable these optional PHP programs because they pose a tremendous security risk. ImageMagick Engine bypasses all of this and uses the built in PHP ImageMagick processing. No monthly fees, no extra configurations, and nearly guaranteed to work on any web host because it's a PHP program that most, if not all web hosts, load by default. Brilliant! Get this one. It's stupid easy to use, and can regenerate all your WP images in just a few minutes.
15件のレビューをすべて表示

貢献者と開発者

ImageMagick エンジン はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“ImageMagick エンジン” は7ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“ImageMagick エンジン” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.7.8

  • バグ修正

1.7.7

  • Prevent remote code execution vulnerabilities
  • Fix fatal error when “exec” is not allowed by server

1.7.6

  • Fix plugin vulnerabilities and added nonce checks

1.7.4

  • Important bugfix

1.7.3

  • Improve check that image file exists on server
  • Fix check of executable path
  • Tested compability with WordPress 6.0

1.7.2

  • Fixed bug when no image editor available

1.7.1

  • ファイル名の生成に WP_Image_Editor クラスを使用
  • WordPress 5.8.1 の互換性を検証

1.7.0

  • Add option to resize images interlaced
  • Fix: Don’t attempt to regenerate SVG’s.
  • Handle scaled images with wp_get_original_image_path
  • Bugfix cli executable respnsonse
  • WordPress 5.8 の互換性を検証

1.6.5

  • トルコ語翻訳 Haydar ŞAHİN に感謝
  • バグ修正
  • WordPress 5.5 での互換性を検索済み

1.6.4

  • .jpeg ファイルの致命的なバグを修正

1.6.3

  • Clean up code and constant for version (thanks @paulschreiber)
  • open_basedir が有効なら is_executable の警告を無効化

1.6.2

  • 標準で medium_large の画像サイズを追加
  • ImageMagick CLI のバージョン表示 (@marcissimus に感謝)

1.6.1

  • Fixed deprecated use of gd_edit_image_support (thanks @chesio)

1.6.0

  • 小さなバグを修正
  • 管理画面を少し更新

1.5.4

  • PNG 透過エラーが起こることがあるバグの修正

1.5.3

  • WP 5.0 でテスト済み

1.5.2

  • WP 4.1 でテスト済み

1.5.1

  • WP 3.6 でテスト済み
  • jQuery のダイアログ中のほかのユーザーの CSS の問題を修正

1.5.0

  • WP 3.5 ベータ 2 でテスト済み
  • 各画像の大きさごとに、品質とサイズの最適化を選択できるようにしました
  • メディアポップアップと、新しい添付エディター (post.php) におけるリサイズ時の UI のバグを修正
  • リサイズ後に ime_after_resize アクションを追加
  • Imagick の例外処理を捕捉
  • WP の標準的なコード記法を使うようにコードを修正
  • フランス語翻訳を更新 Damien Fabreguettes に感謝
  • スウェーデン語翻訳を更新

1.4.0

  • WP 3.3.1 でテスト済み
  • メディアライブラリ中にリサイズ / 強制リサイズボタン
  • 画像が数が多い場合のリサイズの精度を高めました
  • ajax リサイズのコードの健全性テストを追加
  • jQuery UI progressbar のWordPress 版が利用できれば使用
  • プラグインの init を開始時と後半部に分割
  • PHP の通知を修正 (最初のプラグインの設定において)
  • スェーデン語翻訳を更新
  • フランス語翻訳 Damien Fabreguettes に感謝

1.3.1

  • WP 3.2.1 でテスト済み
  • バグ修正:Windows における「^」文字のエスケープ (alx359 に感謝)
  • clean up IM command line argument handling a bit

1.3.0

  • WP 3.2 でテスト済み
  • jQuery 1.6 における適合性を改善
  • PHP の通知のいくつかを除去
  • Change command line limit values to specifik byte amounts (instead of “mb”) for compatability with really old IM versions
  • Handle open_basename restrictions better
  • PHP の古いバージョン (pre 6.3.1) の Imagick クラスの処理
  • IM and WordPress compute aspect ratio slightly differently, force the WP values

1.2.3

  • すべて画像をリサイズする処理のバグを修正し、一部の PHP の通知を除去。Andreas Kleinschmidt の報告に感謝
  • WordPress の UI Core のバージョンに合わせて、jQuery UI Progressbar を1.8.9にバージョンアップ

1.2.2

  • Windows でのファイルパスの空白を修正
  • WordPress 3.1.2 でテスト済み
  • FAQ に質問を追加

1.2.1

  • 非推奨の警告を修正
  • WordPress 3.1 でテスト済み

1.2.0

  • Rewrite image cropping for Imagick PHP module to make sure we keep image profiles. Thanks to Christian Münch for report
  • Improve test for IM executable
  • Administration: AJAXify image resizing, clarify engine selection, only load css/js on actual plugin page
  • Handle progressbar version incompatability for jQuery UI 1.8 (in WP 3.1) and jQuery UI 1.7 (in WP 3.0)
  • WordPress 3.1 RC2 でテスト済み

1.1.2

  • Fix bug with forced resize of custom image sizes
  • Fix warning with open_basedir restriction during path test
  • ドイツ語翻訳を追加 Dirk Rottig に感謝

1.1.1

  • Fix search-and-replace error from 1.1 that made it impossible to change settings! Thanks to Marco M. Jaeger for report!

1.1

  • 他言語化
  • スウェーデン語翻訳を追加

1.0

  • 最初のリリース