Download the PHP package rfd/imagemagick without Composer

On this page you can find all versions of the php package rfd/imagemagick. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imagemagick

imagemagick

RFD ImageMagick library.

Requirements

Usage

composer require rfd/imagemagick

About

Included Functionality

Included is only a few commands that we've found useful at RedFlagDeals. You're able to string them together to get most common things done.

Commands

Slice

Extracts a rectangle from the image based on the width, height, offset X, offset Y, and gravity.

Resize

Resizes the image based on the width, height, gravity and resize mode

Modes

CommonOptions::MODE_ONLY_SHRINK_LARGER Will only shrink the image if it is larger than the requested dimensions. Otherwise it leaves the image alone. See: http://www.imagemagick.org/Usage/resize/#shrink

CommonOptions::MODE_FILL_AREA will resize to the smallest dimension. See: http://www.imagemagick.org/Usage/resize/#fill

CommonOptions::MODE_FILL_AREA_OR_FIT will shrink to fill the area if the image is larger than the requested width and height. Otherwise it will increase the image's size to fit within the width and height.

CommonOptions::MODE_RESIZE_ABSOLUTE doesn't care about the aspect ratio and forces the image to be exactly the requested width and height. See: http://www.imagemagick.org/Usage/resize/#noaspect

Convert

Some defaults are set at CommonOptions::FORMAT_* it will force the output mode to a specific image type. Any string that ImageMagick recognizes as an image format will be accepted.

SequenceNumber

This lets you choose a specific page or frame from a PDF or gif, respectively. NB: index starts at 0.

Watermark

Could also be called "Composite." This takes one image, resizes it to 98% the size of another image, and slaps it on top. If you use an image with transparency (like we do) you get a nice watermark.

Info

Returns an array of image information from Result->getExtra(). This is an "Instant" operation. Nothing after it will be processed.

Compare

Returns a float value or "inf" on Result->getExtra() and an image with the compare result on Result->getImage(). This is an "Instant" operation. Nothing after it will be processed.

Blur / Gaussian Blur

Blurs the image by radius and sigma. Blur is faster, Gaussian Blur is smoother. See: http://www.imagemagick.org/Usage/blur/

Quality

Sets the output quality of the image. Generally only useful with lossy formats like JPEG. With PNG, it determines the compression. See: http://www.imagemagick.org/script/command-line-options.php#quality

Strip

Removes profile information from the image. See: http://www.imagemagick.org/script/command-line-options.php#strip

Add Profile, Remove Profile

Adds or removes profile information to the image. AddProfile expects a file name. RemoveProfile expects a profile name. See: http://www.imagemagick.org/script/command-line-options.php#profile

Be careful, though. Each usage of these methods causes the image to be converted in memory from one profile to another. Read the doc carefully!

Color Space

Define the color space to use with the image. A subset of the most common color spaces are included in CommonOptions::COLOUR_SPACE_* See: https://www.imagemagick.org/script/command-line-options.php#colorspace

Processing Images

All processing is done after the command has been built by calling Builder->finish(). If a subclass of Image is provided, it will call Image->setImageData() on it.

Instant Operations

Currently there are two "instant" operations, Info and Compare. Due to the nature of the information returned, it doesn't make sense to continue processing.

One-Shot Operations

One-Shot operations can take parameters when the operation is requested, instead of having to use ->next().

Quality, Format, AddProfile, RemoveProfile, and Strip can be called this way.

Notes

Only works on the command line

We've never used the IMagick PECL extension. The implementation provided is completely CLI-based. The command line is built, then run when Builder->finish() is called.

ImageMagick Version

This library was built against ImageMagick 6.7.7-10 Q16 on Linux. The PHPUnit tests MAY fail when comparing images in different versions. Improvements to the tests to help with this would be greatly appreciated.

Windows Compatibility

It should be windows-compatible, we've done a small amount of testing on Windows and there are little fixes for it in the code. However, there is no guarantee that it will work flawlessly on Windows.

Contributing

Pull requests are welcome and encouraged! We know there's a lot that hasn't been implemented yet.


All versions of imagemagick with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rfd/imagemagick contains the following files

Loading the files please wait ....