Skip to content

Commit

Permalink
Prepare version 2.9.1-alpha.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaillard committed Aug 25, 2016
1 parent d93a521 commit 685661f
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 52 deletions.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ in your `PATH` variable.
## Versioning

To easier version identification the version of `php-metadata-extractor` will always be aligned with the version
of the Java `metadata-extractor`.
of the Java `metadata-extractor` library.

Stable versions of `php-metadata-extrator` will be equal to `X.Y.Z-N` where `N` represents a patch number
associated to `php-metadata-extractor`.
Expand Down Expand Up @@ -82,11 +82,28 @@ The following builds are available :
* `grunt pdepend` generate the PDepend quality charts ;
* `grunt phpmd` generate the PHPMD code quality reports.

## Release history

### 2.9.1-alpha.3 (2016-08-25)
* Add `\Gomoob\MetadataExtractor\Metadata\Bmp\BmpHeaderDescriptor` to begin management of BMP files ;
* Add `\Gomoob\MetadataExtractor\Metadata\Bmp\BmpHeaderDirectory` to begin management of BMP files ;
* Update composer dependencies and improve composer configuration.

### 2.9.1-alpha.2 (2016-08-10)
* Implement the `\Gomoob\MetadataExtractor\Metadata\Directory#containsTag($tagType)` method ;
* Fix unit tests on Travis ;
* Add contribution instructions in the README file.

### 2.9.1-alpha.1 (2016-08-09)
* Initial version.

## About Gomoob

At [Gomoob](https://www.gomoob.com "Gomoob") we build high quality software with awesome Open Source frameworks
everyday. Would you like to start your next project with us? That's great! Give us a call or send us an email and we
will get back to you as soon as possible !
At [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would
you like to start your next project with us? That's great! Give us a call or send us an email and we will get back to
you as soon as possible !

You can contact us by email at [[email protected]](mailto:[email protected]) or by phone number
[(+33) 6 85 12 81 26](tel:+33685128126) or [(+33) 6 28 35 04 49](tel:+33685128126).

Visit also http://gomoob.github.io to discover more Open Source softwares we develop.
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "gomoob/php-metadata-extractor",
"description" : "PHP wrapper to easily call the Java metadata-extrator library.",
"version" : "2.9.1-alpha.2",
"version" : "2.9.1-alpha.3",
"license" : "MIT",
"type" : "library",
"keywords" : [
Expand Down Expand Up @@ -36,18 +36,18 @@
},
"require" : {
"php" : "^5.6 || ^7.0",
"alchemy/binary-driver" : "~1.6"
"alchemy/binary-driver" : "^1.6.0"
},
"require-dev" : {
"codeclimate/php-test-reporter" : "~0.3",
"pdepend/pdepend" : "~2.2",
"phpdocumentor/phpdocumentor" : "2.*",
"phploc/phploc" : "~3.0",
"phpmd/phpmd" : "~2.4",
"phpunit/phpunit" : "~5.5",
"satooshi/php-coveralls" : "~1.0",
"sebastian/phpcpd" : "~2.0",
"squizlabs/php_codesniffer" : "~2.6",
"symfony/yaml" : "~3.1"
"codeclimate/php-test-reporter" : "^0.3.2",
"pdepend/pdepend" : "^2.2.4",
"phpdocumentor/phpdocumentor" : "^2.9.0",
"phploc/phploc" : "^3.0.1",
"phpmd/phpmd" : "^2.4.3",
"phpunit/phpunit" : "^5.5.3",
"satooshi/php-coveralls" : "^1.0.1",
"sebastian/phpcpd" : "^2.0.4",
"squizlabs/php_codesniffer" : "^2.6.2",
"symfony/yaml" : "^3.1.3"
}
}
52 changes: 26 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gomoob-php-metadata-extractor",
"version": "2.9.1-alpha.2",
"version": "2.9.1-alpha.3",
"license": "MIT",
"repository" : {
"type" : "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@

use Gomoob\BinaryDriver\MetadataExtractorDriver;

use Gomoob\MetadataExtractor\Lang\Rational;

use Gomoob\MetadataExtractor\Metadata\Metadata;

use Gomoob\MetadataExtractor\Metadata\Directory;
use Gomoob\MetadataExtractor\Metadata\Bmp\BmpHeaderDirectory;
use Gomoob\MetadataExtractor\Metadata\File\FileMetadataDirectory;
use Gomoob\MetadataExtractor\Metadata\Gif\GifHeaderDirectory;
use Gomoob\MetadataExtractor\Metadata\Jpeg\JpegComponent;
use Gomoob\MetadataExtractor\Metadata\Jpeg\JpegDirectory;
use Gomoob\MetadataExtractor\Metadata\Jfif\JfifDirectory;
Expand All @@ -30,9 +34,7 @@
use Gomoob\MetadataExtractor\Metadata\Exif\ExifInteropDirectory;
use Gomoob\MetadataExtractor\Metadata\Exif\Makernotes\CanonMakernoteDirectory;
use Gomoob\MetadataExtractor\Metadata\Exif\GpsDirectory;
use Gomoob\MetadataExtractor\Lang\Rational;
use Gomoob\MetadataExtractor\Metadata\Png\PngDirectory;
use Gomoob\MetadataExtractor\Metadata\Gif\GifHeaderDirectory;

/**
* Reads metadata from any supported file format.
Expand Down Expand Up @@ -677,6 +679,9 @@ private static function createDirectoryWithName($directoryName)
case 'Adobe JPEG':
$directory = new AdobeJpegDirectory();
break;
case 'BMP Header':
$directory = new BmpHeaderDirectory();
break;
case 'Canon Makernote':
$directory = new CanonMakernoteDirectory();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

/**
* gomoob/php-metadata-extractor
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
namespace Gomoob\MetadataExtractor\Metadata\Adobe;

use Gomoob\MetadataExtractor\Metadata\TagDescriptor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/**
* gomoob/php-metadata-extractor
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
namespace Gomoob\MetadataExtractor\Metadata\Bmp;

use Gomoob\MetadataExtractor\Metadata\TagDescriptor;

/**
* @author Baptiste GAILLARD ([email protected])
*/
class BmpHeaderDescriptor extends TagDescriptor
{
public function __construct(BmpHeaderDirectory $directory)
{
parent::__construct($directory);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

/**
* gomoob/php-metadata-extractor
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
namespace Gomoob\MetadataExtractor\Metadata\Bmp;

use Gomoob\MetadataExtractor\Metadata\Directory;

/**
* @author Baptiste GAILLARD ([email protected])
*/
class BmpHeaderDirectory extends Directory
{
const TAG_HEADER_SIZE = -1;

const TAG_IMAGE_HEIGHT = 1;
const TAG_IMAGE_WIDTH = 2;
const TAG_COLOUR_PLANES = 3;
const TAG_BITS_PER_PIXEL = 4;
const TAG_COMPRESSION = 5;
const TAG_X_PIXELS_PER_METER = 6;
const TAG_Y_PIXELS_PER_METER = 7;
const TAG_PALETTE_COLOUR_COUNT = 8;
const TAG_IMPORTANT_COLOUR_COUNT = 9;

private static $tagNameMap = [
self::TAG_HEADER_SIZE => 'Header Size',

self::TAG_IMAGE_HEIGHT => 'Image Height',
self::TAG_IMAGE_WIDTH => 'Image Width',
self::TAG_COLOUR_PLANES => 'Planes',
self::TAG_BITS_PER_PIXEL => 'Bits Per Pixel',
self::TAG_COMPRESSION => 'Compression',
self::TAG_X_PIXELS_PER_METER => 'X Pixels per Meter',
self::TAG_Y_PIXELS_PER_METER => 'Y Pixels per Meter',
self::TAG_PALETTE_COLOUR_COUNT => 'Palette Colour Count',
self::TAG_IMPORTANT_COLOUR_COUNT => 'Important Colour Count'
];

public function __construct()
{
$this->setDescriptor(new BmpHeaderDescriptor($this));
}

/**
* {@inheritDoc}
*/
public function getName()
{
return 'BMP Header';
}

/**
* {@inheritDoc}
*/
protected function getTagNameMap()
{
return static::$tagNameMap;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class MetadataExtractorDriverTest extends TestCase
{

/**
* Test method for `create($logger, $configuration)`.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Gomoob\MetadataExtractor\Metadata\File\FileMetadataDirectory;

/**
* Test case used to test the {@link ImageMetadataReader} class with the `Nikon E990.jpg` test file.
* Test case used to test the {@link ImageMetadataReader} class with the `dotnet-256x256-alpha-palette.png` test file.
*
* @author Baptiste GAILLARD ([email protected])
* @group ImageMetadataReader.Dotnet256x256AlphaPaletteTest
Expand Down
Loading

0 comments on commit 685661f

Please sign in to comment.