Skip to content

Commit c0d1ce4

Browse files
kamil4ildyria
andauthored
Fix 1548 (#55)
* New MapperAbstract class with a recursive trim * Support IPTC:CopyrightNotice * Support more EXIF tags * Support EXIF ImageDescription * Add more test images * Fix the GPS rounding code * fix Copyrights Co-authored-by: ildyria <[email protected]>
1 parent ada5def commit c0d1ce4

26 files changed

+109
-189
lines changed

CHANGELOG.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright (C) 2013 Tom Van Herreweghe, http://theanalogguy.be
1+
Copyright (C) 2013-2019 Tom Van Herreweghe, http://theanalogguy.be
2+
Copyright (C) 2020 LycheeOrg, https://lycheeorg.github.io
23

34
Permission is hereby granted, free of charge, to any person obtaining a copy of
45
this software and associated documentation files (the "Software"), to deal in

lib/PHPExif/Adapter/AdapterAbstract.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<?php
2-
/**
3-
* PHP Exif Reader Adapter Abstract: Common functionality for adapters
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
10-
*/
112

123
namespace PHPExif\Adapter;
134

lib/PHPExif/Adapter/AdapterInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22
/**
3-
* PHP Exif Reader Adapter Interface: Defines the interface for reader adapters
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
103
* @codeCoverageIgnore
114
*/
125

lib/PHPExif/Adapter/Exiftool.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<?php
2-
/**
3-
* PHP Exif Exiftool Reader Adapter
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
10-
*/
112

123
namespace PHPExif\Adapter;
134

lib/PHPExif/Adapter/ImageMagick.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<?php
2-
/**
3-
* PHP Exif Imagick Reader Adapter
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
10-
*/
112

123
namespace PHPExif\Adapter;
134

@@ -83,6 +74,8 @@ public function getExifFromFile(string $file) : Exif
8374
}
8475

8576
$data = array_merge($data_exif, $data_iptc, $additional_data);
77+
// Force UTF8 encoding
78+
$data = $this->convertToUTF8($data);
8679

8780
// map the data:
8881
$mapper = $this->getMapper();

lib/PHPExif/Adapter/Native.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
<?php
2-
/**
3-
* PHP Exif Native Reader Adapter
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
10-
*/
112

123
namespace PHPExif\Adapter;
134

145
use PHPExif\Exif;
156
use Safe\Exceptions\ImageException;
16-
use Throwable;
177

188
use function Safe\mime_content_type;
199
use function Safe\filesize;
@@ -229,7 +219,7 @@ public function getExifFromFile(string $file) : Exif
229219
// Fail silently
230220
}
231221
}
232-
222+
233223
// Force UTF8 encoding
234224
$data = $this->convertToUTF8($data);
235225

lib/PHPExif/Adapter/NoAdapterException.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22
/**
3-
* PHP Exif Reader Adapter Interface: Defines the interface for reader adapters
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Reader
103
* @codeCoverageIgnore
114
*/
125

lib/PHPExif/Exif.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<?php
2-
/**
3-
* PHP Exif Reader: Reads EXIF metadata from a file, without having to install additional PHP modules
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2013 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Exif
10-
*/
112

123
namespace PHPExif;
134

@@ -20,7 +11,6 @@
2011
*
2112
* @category PHPExif
2213
* @package Exif
23-
* @
2414
*/
2515
class Exif
2616
{

lib/PHPExif/Hydrator/HydratorInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22
/**
3-
* PHP Exif Hydrator Interface: Defines the interface for a hydrator
4-
*
5-
* @link http://github.com/miljar/PHPExif for the canonical source repository
6-
* @copyright Copyright (c) 2015 Tom Van Herreweghe <[email protected]>
7-
* @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
8-
* @category PHPExif
9-
* @package Hydrator
103
* @codeCoverageIgnore
114
*/
125

0 commit comments

Comments
 (0)