2017 © Pedro Peláez
 

library imagine-vips

libvips adapter for imagine

image

rokka/imagine-vips

libvips adapter for imagine

  • Thursday, May 24, 2018
  • by rokka
  • Repository
  • 4 Watchers
  • 13 Stars
  • 1,650 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 8 Versions
  • 22 % Grown

The README.md

libvips adapter for Imagine

Static analysis Latest Stable Version, (*1)

This package provides a libvips integration for Imagine. The VIPS image processing system is a very fast, multi-threaded image processing library with low memory needs., (*2)

Version 8.7 or higher of libvips is highly recommended. paste and rotate by angles other than multipliers of 90 are not supported with older versions of libvips., (*3)

You either need the PHP FFI extension (recommended, since that's the currently supported way by the libvips maintainer) or the php-vips-ext extension version 1.0.8 or higher (you need to install that manually). And the php-vips classes (automatically installed by composer), (*4)

The most (to us at least) important stuff is implemented. There may be edge cases, which are not covered yet, but those will be hopefully fixed soon. Report them, if you encounter one., (*5)

Even it this is not a 1.0.0 release yet, the library is somehow battle tested as we use it on rokka.io., (*6)

Installation

Just run the following, (*7)

composer require rokka/imagine-vips

and then you can use it like any other Imagine implementation with eg., (*8)

$imagine = new \Imagine\Vips\Imagine();

$size    = new Imagine\Image\Box(40, 40);
$mode    = Imagine\Image\ImageInterface::THUMBNAIL_INSET;

$imagine->open('/path/to/large_image.jpg')
    ->thumbnail($size, $mode)
    ->save('/path/to/thumbnail.png')

Missing stuff

Needs vips 8.6 or higher:, (*9)

  • paste
  • rotate by angles other than multipliers of 90

Not implemented yet, (*10)

  • Complete Drawer support, only text is.
  • Methods:
    • fill
    • histogram
  • Filters:
    • colorize

Most of them are not that important to us, so any contributions are welcome. Drawer for example may be a low hanging fruit, if you want to get into it., (*11)

Layers and Animated gifs

If you have vips 8.7.0, layers and animated gifs should work like with imagick., (*12)

Saving files

Natively supported by libvips for saving are jpg, png, webp and tiff. If you have vips 8.7.0 with imagemagick support, it will use vips "magicksave" for all other formats. It not, this adapter falls back to the Imagick or GD implementation., (*13)

Contribution

Any contribution is very appreciated, just file an issue or send a Pull Request., (*14)

The Versions

24/05 2018

dev-master

9999999-dev https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

The Development Requires

image manipulation graphics image processing drawing libvips vips php-vips

09/12 2017

dev-layers-support

dev-layers-support https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

The Development Requires

image manipulation graphics image processing drawing libvips vips php-vips

06/12 2017

0.1.0

0.1.0.0 https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

The Development Requires

image manipulation graphics image processing drawing libvips vips php-vips

03/12 2017

0.0.5

0.0.5.0 https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

The Development Requires

image manipulation graphics image processing drawing libvips vips php-vips

27/11 2017

0.0.4

0.0.4.0 https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

image manipulation graphics image processing drawing libvips vips php-vips

21/11 2017

0.0.3

0.0.3.0 https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

image manipulation graphics image processing drawing libvips vips php-vips

20/11 2017

0.0.2

0.0.2.0 https://github.com/rokka-io/imagine-vips

libvips adapter for imagine

  Sources   Download

MIT

The Requires

 

image manipulation graphics image processing drawing libvips vips php-vips

19/11 2017

0.0.1

0.0.1.0 https://github.com/rokka-io/imagine-vips

Vips adapter for imagine

  Sources   Download

MIT

The Requires

 

image manipulation graphics image processing drawing libvips vips php-vips