-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
200 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`. | ||
|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/php/Gomoob/MetadataExtractor/Metadata/Bmp/BmpHeaderDescriptor.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/main/php/Gomoob/MetadataExtractor/Metadata/Bmp/BmpHeaderDirectory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
Oops, something went wrong.