Skip to content

Commit fb12deb

Browse files
Merge pull request #1 from PHPExif/master
Get main repo changes
2 parents 65da996 + 361c15b commit fb12deb

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

.travis.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
language: php
22

3-
php:
4-
- 5.3
5-
- 5.4
6-
- 5.5
7-
- 5.6
3+
env:
4+
global:
5+
- DEPENDENCIES=no
86

97
matrix:
10-
allow_failures:
8+
include:
9+
- php: 5.3
10+
dist: precise
11+
- php: 5.4
12+
dist: precise
1113
- php: 5.6
14+
- php: 7.0
15+
- php: 7.1
16+
- php: nightly
17+
allow_failures:
18+
- php: 7.2
19+
- php: nightly
1220

1321
script:
1422
- mkdir -p build/logs

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [PHPExif v0.6.1](http://github.com/Miljar/php-exif) [![Build Status](https://travis-ci.org/Miljar/php-exif.png?branch=master)](https://travis-ci.org/Miljar/php-exif) [![Coverage Status](https://coveralls.io/repos/Miljar/php-exif/badge.svg?branch=master)](https://coveralls.io/r/Miljar/php-exif?branch=master) [![Code Climate](https://codeclimate.com/github/Miljar/php-exif/badges/gpa.svg)](https://codeclimate.com/github/Miljar/php-exif)
1+
# [PHPExif v0.6.1](http://github.com/PHPExif/php-exif) [![Build Status](https://travis-ci.org/PHPExif/php-exif.png?branch=master)](https://travis-ci.org/PHPExif/php-exif) [![Coverage Status](https://coveralls.io/repos/PHPExif/php-exif/badge.svg?branch=master)](https://coveralls.io/r/PHPExif/php-exif?branch=master) [![Code Climate](https://codeclimate.com/github/PHPExif/php-exif/badges/gpa.svg)](https://codeclimate.com/github/PHPExif/php-exif)
22

33
PHPExif is a library which gives you easy access to the EXIF meta-data of an image.
44

@@ -12,7 +12,7 @@ PHPExif serves as a wrapper around some native or CLI tools which access this EX
1212
## Installation (composer)
1313

1414
```json
15-
"miljar/php-exif": "~0.6.0"
15+
composer require miljar/php-exif
1616
```
1717

1818

lib/PHPExif/Mapper/Native.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,14 @@ protected function isFieldKnown(&$field)
249249
/**
250250
* Extract GPS coordinates from components array
251251
*
252-
* @param array $components
252+
* @param array|string $components
253253
* @return float
254254
*/
255-
protected function extractGPSCoordinate(array $components)
255+
protected function extractGPSCoordinate($components)
256256
{
257+
if (!is_array($components)) {
258+
$components = array($components);
259+
}
257260
$components = array_map(array($this, 'normalizeComponent'), $components);
258261

259262
if (count($components) > 2) {

tests/PHPExif/ExifTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,8 @@ public function testAdapterConsistency()
611611
$methods = $reflClass->getMethods(ReflectionMethod::IS_PUBLIC);
612612
$testfiles = array(
613613
PHPEXIF_TEST_ROOT . '/files/morning_glory_pool_500.jpg',
614-
PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg'
614+
PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg',
615+
PHPEXIF_TEST_ROOT . '/files/dsc_0003.jpg'
615616
);
616617

617618
$adapter_exiftool = new \PHPExif\Adapter\Exiftool();

tests/files/dsc_0003.jpg

1.7 MB
Loading

0 commit comments

Comments
 (0)