Imagick Wordpress



Imagick is known (sadly) for being one big memory leak, I've managed to make a 300 kilobyte PNG image consume more than 4 gigabytes consumed (and more than 10 gigabytes allocated), simply by using the Media Library in WordPress. Connect and share knowledge within a single location that is structured and easy to search. Why is ImageMagick Great for WordPress? ImageMagick is a software suite that can be used to manipulate images. As mentioned above, GD and ImageMagick complete similar tasks, however, ImageMagick produces sharper, higher-quality compressed images.

Linux Binary Release • Mac OS X Binary Release • iOS Binary Release • Windows Binary Release

You can install ImageMagick from source. However, if you don't have a proper development environment or if you're anxious to get started, download a ready-to-run Linux or Windows executable. Before you download, you may want to review recent changes to the ImageMagick distribution.

ImageMagick source and binary distributions are available from a variety of FTP and Web mirrors around the world.

Linux Binary Release

These are the Linux variations that we support. If your system is not on the list, try installing from source. Although ImageMagick runs fine on a single core computer, it automagically runs in parallel on multi-core systems reducing run times considerably.

VersionDescription
magickComplete portable application on Linux, no installation required. Just download and run. AppImages require FUSE and libc to run. Many distributions have a working FUSE setup out-of-the-box. However if it is not working for you, you must install and configure FUSE manually.
ImageMagick-7.0.11-9.x86_64.rpmRedhat / CentOS 8.3 x86_64 RPM
ImageMagick-libs-7.0.11-9.x86_64.rpmRedhat / CentOS 8.3 x86_64 RPM
ImageMagick RPM'sDevelopment, Perl, C++, and documentation RPM's.
ImageMagick-i386-pc-solaris2.11.tar.gzSolaris Sparc 2.11
ImageMagick-i686-pc-cygwin.tar.gzCygwin
ImageMagick-i686-pc-mingw32.tar.gzMinGW

Verify its message digest.

ImageMagick RPM's are self-installing. Simply type the following command and you're ready to start using ImageMagick:

You'll need the libraries as well:

Imagick Wordpress

Note, if there are missing dependencies, install them from the EPEL repo.

For other systems, create (or choose) a directory to install the package into and change to that directory, for example:

Next, extract the contents of the package. For example:

Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:

If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:

On Linux and Solaris machines add $MAGICK_HOME/lib to the LD_LIBRARY_PATH environment variable:

Imagick

Finally, to verify ImageMagick is working properly, type the following on the command line:

Congratulations, you have a working ImageMagick distribution under Linux or Linux and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.

Mac OS X Binary Release

We recommend Homebrew which provides pre-built binaries for Mac (some users prefer MacPorts). Download HomeBrew and type:

ImageMagick depends on Ghostscript fonts. To install them, type:

The brew command downloads and installs ImageMagick with many of its delegate libraries (e.g. JPEG, PNG, Freetype, etc). Homebrew no longer allows configurable builds; if you need different compile options (e.g. librsvg support), you can download the ImageMagick Mac OS X distribution we provide:

VersionDescription
ImageMagick-x86_64-apple-darwin20.1.0.tar.gzmacOS High Sierra

Verify its message digest.

Create (or choose) a directory to install the package into and change to that directory, for example:

Next, extract the contents of the package. For example:

Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:

If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:

Set the DYLD_LIBRARY_PATH environment variable:

Finally, to verify ImageMagick is working properly, type the following on the command line:

Note, the display program requires the X11 server available on your Mac OS X installation DVD. Once that is installed, you will also need to set export DISPLAY=:0.

The best way to deal with all the exports is to put them at the end of your .profile file

Congratulations, you have a working ImageMagick distribution under Mac OS X and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.

iOS Binary Release

~Claudio provides iOS builds of ImageMagick.

Download iOS Distribution

You can download the iOS distribution directly from ImageMagick's repository.

There are always 2 packages for the compiled ImageMagick:

  • iOSMagick-VERSION-libs.zip
  • iOSMagick-VERSION.zip

The first one includes headers and compiled libraries that have been used to compile ImageMagick. Most users would need this one.

ImageMagick compiling script for iOS OS and iOS Simulator

To run the script:

where VERSION is the version of ImageMagick you want to compile (i.e.: 7.0.11-9, svn, ...)

This script compiles ImageMagick as a static library to be included in iOS projects and adds support for

  • png
  • jpeg
  • tiff

Upon successful compilation a folder called IMPORT_ME is created on your ~/Desktop. You can import it into your Xcode project.

Xcode project settings

After including everything into Xcode please also make sure to have these settings (Build tab of the project information):

  • Other Linker Flags: -lMagickCore-Q16 -lMagickWand-Q16 -ljpeg -lpng -lbz2 -lz
  • Header Search Paths: $(SRCROOT) - make it Recursive
  • Library Search Paths: $(SRCROOT) - make it Recursive

On the lower left click on the small-wheel and select: Add User-Defined Setting

  • Key: OTHER_CFLAGS
  • Value: -Dmacintosh=1
Sample project

A sample project is available for download. It is not updated too often, but it does give an idea of all the settings and some ways to play around with ImageMagick in an iOS application.

Windows Binary Release

ImageMagick runs on Windows 10 (x86 & x64), Windows 8 (x86 & x64), Windows 7 (x86 & x64), Windows Server 2012, Windows Vista (x86 & x64) with Service Pack 2, Windows Server 2008 (x86 & x64) with Service Pack 2, and Windows Server 2008 R2 (x64).

The amount of memory can be an important factor, especially if you intend to work on large images. A minimum of 512 MB of RAM is recommended, but the more RAM the better. Although ImageMagick runs well on a single core computer, it automagically runs in parallel on multi-core systems reducing run times considerably.

The Windows version of ImageMagick is self-installing. Simply click on the appropriate version below and it will launch itself and ask you a few installation questions. Versions with Q8 in the name are 8 bits-per-pixel component (e.g. 8-bit red, 8-bit green, etc.), whereas, Q16 in the filename are 16 bits-per-pixel component. A Q16 version permits you to read or write 16-bit images without losing precision but requires twice as much resources as the Q8 version. Versions with dll in the filename include ImageMagick libraries as dynamic link libraries. Unless you have a Windows 32-bit OS, we recommend this version of ImageMagick for 64-bit Windows:

VersionDescription
ImageMagick-7.0.11-9-Q16-HDRI-x64-dll.exeWin64 dynamic at 16 bits-per-pixel component

Or choose from these alternate Windows binary distributions:

VersionDescription
ImageMagick-7.0.11-9-Q16-x64-static.exeWin64 static at 16 bits-per-pixel component
ImageMagick-7.0.11-9-Q8-x64-dll.exeWin64 dynamic at 8 bits-per-pixel component
ImageMagick-7.0.11-9-Q8-x64-static.exeWin64 static at 8 bits-per-pixel component
ImageMagick-7.0.11-9-Q16-x64-dll.exeWin64 dynamic at 16 bits-per-pixel component
ImageMagick-7.0.11-9-Q16-HDRI-x64-dll.exeWin64 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled
ImageMagick-7.0.11-9-Q16-HDRI-x64-static.exeWin64 static at 16 bits-per-pixel component with high dynamic-range imaging enabled
ImageMagick-7.0.11-9-Q16-x86-dll.exeWin32 dynamic at 16 bits-per-pixel component
ImageMagick-7.0.11-9-Q16-x86-static.exeWin32 static at 16 bits-per-pixel component
ImageMagick-7.0.11-9-Q8-x86-dll.exeWin32 dynamic at 8 bits-per-pixel component
ImageMagick-7.0.11-9-Q8-x86-static.exeWin32 static at 8 bits-per-pixel component
ImageMagick-7.0.11-9-Q16-HDRI-x86-dll.exeWin32 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled
ImageMagick-7.0.11-9-Q16-HDRI-x86-static.exeWin32 static at 16 bits-per-pixel component with high dynamic-range imaging enabled
ImageMagick-7.0.11-9-portable-Q16-x64.zipPortable Win64 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries).
ImageMagick-7.0.11-9-portable-Q16-x86.zipPortable Win32 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries).
ImageMagick-7.0.11-9-portable-Q8-x64.zipPortable Win64 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries).
ImageMagick-7.0.11-9-portable-Q8-x86.zipPortable Win32 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries).
ImageMagick-7.0.11-9-portable-Q16-HDRI-x64.zipPortable Win64 static at 16 bits-per-pixel component with high dynamic-range imaging enabled. Just copy to your host and run (no installer, no Windows registry entries).
ImageMagick-7.0.11-9-portable-Q16-HDRI-x86.zipPortable Win32 static at 16 bits-per-pixel component with high dynamic-range imaging enabled. Just copy to your host and run (no installer, no Windows registry entries).

Verify its message digest.

To verify ImageMagick is working properly, type the following in an Command Prompt window:

If you have any problems, you likely need vcomp120.dll. To install it, download Visual C++ Redistributable Package.

Note, use a double quote (') rather than a single quote (') for the ImageMagick command line under Windows:

Use two double quotes for VBScript scripts:

Congratulations, you have a working ImageMagick distribution under Windows and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.

توضیحات

  • Quick & easy to use: Install, activate, configure and start uploading new media images!
    To (re)compress existing media images use “Regenerate Thumbnails Plugin” or “WP CLI media regenerate” command.

  • New in 1.3.13 – “Full size Compressed”.
    Original file will be compressed to ‘filename’-(Width)x(Height).’ext’. Original image remains unchanged. Due to PHP-imagick resource limits, only if upload/original is not larger than 2500×2500 pixels.

  • New in 1.3.13 – “Sharpen JPEG Image”.
    Dual setting to sharpen full-size and thumbnail/sizes JPEG images.

  • New in 1.3.13 – “Transparent WebP”.
    Both transparent and opaque PNG images are converted to Webp.

  • After activation, only settings you maybe want to change is JPEG Compression Quality and SharpenImage Sigma.
    Choose your compression quality from 30% to 95%. Sharpen Image from 0.5 to 1.5 Sigma. For the rest of the settings, use defaults or feel free to experiment and have fun with. 😇

  • Automatic image optimization to thumbnails and conversion to WebP clones:
    No limits in number or size of images. No external service required. Compress better or keep higher image quality than WordPress does by default. Images will be automatically compressed on upload or on “regenerate thumbnails”. Uploaded image is always preserved in original state. Image Compression will always start from original image quality. You can’t “overoptimize”. Reoptimize existing images with “Regenerate Thumbnails plugin” single or batch process, or with “WP CLI media regenerate” command.

  • Compatible with “WP CLI media regenerate” command and/or with “Regenerate Thumbnails” plugin.
    Important Note: Since WordPress 5.3, BIG JPEG images reduced to 2560×2560 (by “Big Image Size Threshold” feature) and then manually edited by user, on regenerate, will be restored back to original (unedited) version. User edited modifications will be lost. See GitHub issue. Same bug/issue applies both to “WP CLI media regenerate” command and “Regenerate Thumbnails plugin”. To fix that bug/issue, install or upgrade Warp iMagick plugin to version 1.3.13 or above.

  • Compatible up to PHP 7.4.9 and tested against coding standards.
    Tested with PHP_CodeSniffer (phpcs) using WordPress Coding StandardsGitHub rules and PHPCompatibility rules.

  • Improve your site performance, Google PageSpeed score and SEO ranking when serving better compressed JPEG/PNG or WebP images.
    Every JPEG and every non-transparent PNG media image or thumbnail found during image optimization process is converted to WebP and saved as copy with .webp extension added. Default PNG&JPEG to WebP images compression quality is 75% (configurable). In addition, JPEG to WebP compression quality can be set to use & follow compression quality set for JPEG images.

  • WebP Delivery Note
    Due to variety of hosting server software, cache pugins or CDN used, this plugin even does not try to automagically configure your server to deliver WebP images. You will find instructions on how to configure server and deliver WebP images on the settings page. Click on HELP at the top right of the plugin SETTINGS PAGE. Serving WebP images requires manual (DIY) configuration of Apache .htaccess file or NGinx configuration & restart, or IIS or LiteSpeed …

  • Warp-iMagick – Image Optimizer gives you full control over images, file size and quality in image optimization process.
    Images optimization is customizable with advanced image compression settings. See the plenty of options used to optimize images in the Features section below.

  • Multisite support
    Designed to work on WP multisite. No known reason to fail on WP multisite, but not extensively tested yet!

  • Clean uninstall
    By default, no plugin settings are left in your database after uninstall. Feel free to install and activate to make a trial. However, you can choose to preserve plugin options after uninstall. For detailed uninstall info related to added WebP images, see the FAQ section below.

  • Privacy
    Warp-iMagick plugin does not collect nor send any personally identifiable data from your server. WordPress builtin cookies are used to store admin-settings page-state.

  • Known conflicts
    Due to use of bfi_thumb library which completely takes over wordpress WP_Image_Editor classes, in Ajax Search Lite plugin and in Circles Gallery plugin, Warp iMagick plugin will fail to activate while those plugins are active. Activating those plugins after Warp iMagick may cause malfunction of Warp iMagick.

Features

Imagick Php Module

  • Free and Private: No external service or signup required.
    Plugin uses only PHP software installed on your server.

نصب

Using The WordPress Plugin Repository

  1. Navigate to the ‘Plugins’ -> ‘Add New’ .
  2. Search for ‘Warp iMagick’.
  3. Select and click ‘Install Now’.
  4. Activate the plugin.

سوالات متداول

Which PHP extensions are required by this plugin?

  1. PHP-Imagick to compress JPEG/PNG files (required).
  2. PHP-GD for WebP files (optional, but usually installed).

In order to modify/resize/crop photos or images, WordPress requires at least PHP-GD. When both extensions are installed, WordPress prefers PHP-Imagick over PHP-GD.

Do I have both required PHP extensions installed?

Imagick Wordpress
  1. WordPress 5.2 and above: Administrator: Menu -> Tools -> Site Health -> Info -> Expand “Media Handling” and check if “ImageMagick version string” and “GD version” have values.
  2. WordPress 5.1 and below: Install Health Check & Troubleshooting plugin. Open “Health Check” plugin page and click on “PHP Information” tab. You will find there all PHP extensions installed and enabled. Search (Ctrl-F) on page for “Imagick” and “GD”.
  3. WordPress Editor class must be WP_Image_Editor_Imagick (or Warp_Image_Editor_Imagick) but NOT WP_Image_Editor_GD.
  4. PHP-Imagick extension must be linked with ImageMagick library version 6.3.2 or newer.
  5. PHP-GD extension version must be at least 2.0.0 to be accepted by WordPress Image Editor.

Does my web hosting service provide PHP Imagick and GD extensions?

  1. WPEngine: Both by default.
  2. EasyWP: Both by default.
  3. DreamHost: By configuration.
  4. SiteGround: Must enable.
  5. Ask your host-service provider.

Imagick Wordpress Alternative

How to install missing PHP-Imagick extension?

  1. Debian/Ubuntu: “apt-get install php-imagick”.
  2. Fedora/CentOs: “yum install php-imagick”.
  3. Ask your host-service provider.

How to serve WebP images?

See the settings page HELP for instructions on how to configure server to redirect .jpg/.png to .jpg.webp/.png.webp, if such file exists and browser suports WebP image format.

Why WebP files have two extensions?

To prevent overwriting duplicate “WebP” files. With single extension, when you upload “image.png” and “image.jpg”, second “image.webp” would overwrite previous one.

Why is WebP setting (checkbox) disabled?

Because your server has no PHP-GD graphic editing extension or your PHP-GD extension has no WebP support.

What happens with images when plugin is deactivated or deleted?

  1. Existing images remain optimized. If you run “Regenerate Thumbnails” batch process, after plugin is deactivated or deleted, batch process will restore original file-size and quality of WordPress thumbnails.
  2. If you have WebP images, they won’t be deleted. You can delete all WebP images while plugin is active. To delete WebP images, disable WebP option and then batch-run “Regenerate Thumbnails” for all media images.

Imagick Wordpress Nedir

Why plugin fails to activate on my server?

Because your server has no PHP-Imagick installed or has too old version of PHP-Imagick.

بررسی‌ها

Imagick Php Module Wordpress

Perfect for my project. I've been looking for a plugin to optimize the images in my VPS for some time. I'm glad I found it exactly when I needed it. I would like to donate for the plugin but I don't see any button.