Skip to content

Commit

Permalink
:octocat:
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jan 30, 2019
1 parent 17fb3da commit 2b43bac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ addons:

language: php

php:
- 7.2
matrix:
include:
- php: 7.2
- php: 7.3
- php: nightly
allow_failures:
- php: nightly

before_install: printf "\n" | pecl install imagick
install: travis_retry composer install --no-interaction --prefer-source
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ That's it!
### `Imagetiler` public methods
method | return | description
------ | ------ | -----------
`__construct(ContainerInterface $options = null, LoggerInterface $logger = null)` | - | see [`ContainerInterface`](https://github.com/chillerlan/php-traits/blob/master/src/ContainerInterface.php) and [`LoggerInterface`](https://github.com/php-fig/log). Invokes an empty `ImagetilerOptions` object and a `Psr\NullLogger` if the respective parameters aren't set.
`__construct(ContainerInterface $options = null, LoggerInterface $logger = null)` | - | see [`SettingsContainerInterface`](https://github.com/chillerlan/php-settings-container/blob/master/src/SettingsContainerInterface.php) and [`LoggerInterface`](https://github.com/php-fig/log). Invokes an empty `ImagetilerOptions` object and a `Psr\NullLogger` if the respective parameters aren't set.
`setOptions(ContainerInterface $options)` | `Imagetiler` | set options on-the-fly, called internally by the constructor
`setOptimizer(Optimizer $optimizer)` | `Imagetiler` | set an optimizer instance on-the-fly, called internally by the constructor
`process(string $image_path, string $out_path)` | `Imagetiler` | processes the given image from `$image_path` and dumps the output to `$out_path`
Expand All @@ -110,7 +110,7 @@ property | type | default | allowed | description
`$tile_ext` | string | null | * | tile image extension - autodetected from format if none given.
`$quality_jpeg` | int | 80 | 0-100 | quality of the saved image in jpeg format
`$imagick_tmp` | string | null | * | ImageMagick tmp folder
`$overwrite_base_image` | bool | false | * |
`$overwrite_tile_image` | bool | false | * |
`$overwrite_base_image` | bool | false | * |
`$overwrite_tile_image` | bool | false | * |
`$clean_up` | bool | true | * | whether or not to delete temp images
`$optimize_output` | bool | false | * | enable image optimization (requires `Optimizer` instance)
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"require": {
"php": ">=7.2.0",
"ext-imagick": "*",
"chillerlan/php-traits": "^1.1",
"chillerlan/php-settings-container": "^1.0",
"ps/image-optimizer": "^1.2",
"psr/log": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.2",
"chillerlan/php-log": "^1.0"
"phpunit/phpunit": "^7.5",
"chillerlan/php-log": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2b43bac

Please sign in to comment.