- Установка ImageMagick Brew с модулем PHP в Mac OS X
- Download
- Linux Binary Release
- Mac OS X Binary Release
- iOS Binary Release
- Download iOS Distribution
- ImageMagick compiling script for iOS OS and iOS Simulator
- Xcode project settings
- Sample project
- Windows Binary Release
- Install PHP’s imagick extension on Mac with Brew
- Install Image Magick dependency
- Compile Imagick PHP extension with pecl
- Permission denied errors?
- Table of contents
- Want to subscribe to the cron.weekly newsletter?
- Who dis? 🤔
- Download
- Linux Binary Release
- Mac OS X Binary Release
- iOS Binary Release
- Download iOS Distribution
- ImageMagick compiling script for iOS OS and iOS Simulator
- Xcode project settings
- Sample project
- Windows Binary Release
Установка ImageMagick Brew с модулем PHP в Mac OS X
Я установил ImageMagick, используя программу для brew install imagemagick . Все это работало нормально, и я могу запустить любую команду ImageMagick из командной строки Terminal / Command.
Теперь, когда я пытаюсь использовать классы ImageMagick в PHP, я получаю ошибку Class ‘Imagick’ not found in . Я думаю, это потому, что модуль ImageMagick не загружен.
Может ли кто-нибудь помочь мне заставить эту работу работать на PHP? Благодаря!
Дополнительная информация:
Версия для Mac OS X: 10.8: Горный лев
Версия PHP : 5.3.13
Недостаточно установки ImageMagick. Вам также нужен пакет Imagick (возможно, называемый php5-imagick или подобный для варки).
Imagick не выполняет самую работу, это родное расширение PHP для создания и изменения изображений с использованием API ImageMagick .
Попытайтесь найти точное название пакета с помощью brew search imagick .
Я просто сделал это после много экспериментов. На данный момент это, по-видимому, способ сделать это для php 5.3:
Не знаю, кто Хосе Гонсалес, но, видимо, мы находимся в его долге ….
Я использую Йосемити. Для меня решение представляет собой комбинацию ответа и комментариев, которые уже перечислены здесь.
Измените /etc/php.ini, чтобы включить imagick
Я была такая же проблема. Это шаги, которые работали для меня, если вы используете php 5.6
Источник
Download
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.
Version | Description |
---|---|
magick | Complete 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.1.0-9.x86_64.rpm | Redhat / CentOS 8.3 x86_64 RPM |
ImageMagick-libs-7.1.0-9.x86_64.rpm | Redhat / CentOS 8.3 x86_64 RPM |
ImageMagick RPM’s | Development, Perl, C++, and documentation RPM’s. |
ImageMagick-i386-pc-solaris2.11.tar.gz | Solaris Sparc 2.11 |
ImageMagick-i686-pc-cygwin.tar.gz | Cygwin |
ImageMagick-i686-pc-mingw32.tar.gz | MinGW |
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:
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:
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:
Version | Description |
---|---|
ImageMagick-x86_64-apple-darwin20.1.0.tar.gz | macOS High Sierra |
Version | Description |
---|---|
ImageMagick-7.1.0-9-Q16-HDRI-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component with High-dynamic-range imaging enabled |
Or choose from these alternate Windows binary distributions:
Version | Description |
---|---|
ImageMagick-7.1.0-9-Q16-x64-static.exe | Win64 static at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x64-dll.exe | Win64 dynamic at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x64-static.exe | Win64 static at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-HDRI-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-HDRI-x64-static.exe | Win64 static at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-x86-dll.exe | Win32 dynamic at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-x86-static.exe | Win32 static at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x86-dll.exe | Win32 dynamic at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x86-static.exe | Win32 static at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-HDRI-x86-dll.exe | Win32 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-HDRI-x86-static.exe | Win32 static at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-portable-Q16-x64.zip | Portable Win64 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q16-x86.zip | Portable Win32 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q8-x64.zip | Portable Win64 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q8-x86.zip | Portable Win32 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q16-HDRI-x64.zip | Portable 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.1.0-portable-Q16-HDRI-x86.zip | Portable 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). |
Version | Description |
---|---|
magick | Complete 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.1.0-9.x86_64.rpm | Redhat / CentOS 8.3 x86_64 RPM |
ImageMagick-libs-7.1.0-9.x86_64.rpm | Redhat / CentOS 8.3 x86_64 RPM |
ImageMagick RPM’s | Development, Perl, C++, and documentation RPM’s. |
ImageMagick-i386-pc-solaris2.11.tar.gz | Solaris Sparc 2.11 |
ImageMagick-i686-pc-cygwin.tar.gz | Cygwin |
ImageMagick-i686-pc-mingw32.tar.gz | MinGW |
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:
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:
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:
Version | Description |
---|---|
ImageMagick-x86_64-apple-darwin20.1.0.tar.gz | macOS High Sierra |
Version | Description |
---|---|
ImageMagick-7.1.0-9-Q16-HDRI-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component with High-dynamic-range imaging enabled |
Or choose from these alternate Windows binary distributions:
Version | Description |
---|---|
ImageMagick-7.1.0-9-Q16-x64-static.exe | Win64 static at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x64-dll.exe | Win64 dynamic at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x64-static.exe | Win64 static at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-HDRI-x64-dll.exe | Win64 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-HDRI-x64-static.exe | Win64 static at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-x86-dll.exe | Win32 dynamic at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-x86-static.exe | Win32 static at 16 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x86-dll.exe | Win32 dynamic at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q8-x86-static.exe | Win32 static at 8 bits-per-pixel component |
ImageMagick-7.1.0-9-Q16-HDRI-x86-dll.exe | Win32 dynamic at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-9-Q16-HDRI-x86-static.exe | Win32 static at 16 bits-per-pixel component with high dynamic-range imaging enabled |
ImageMagick-7.1.0-portable-Q16-x64.zip | Portable Win64 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q16-x86.zip | Portable Win32 static at 16 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q8-x64.zip | Portable Win64 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q8-x86.zip | Portable Win32 static at 8 bits-per-pixel component. Just copy to your host and run (no installer, no Windows registry entries). |
ImageMagick-7.1.0-portable-Q16-HDRI-x64.zip | Portable 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.1.0-portable-Q16-HDRI-x86.zip | Portable 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). |