Skip to content

Commit

Permalink
Fixed the function extractExif
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick committed Oct 6, 2019
1 parent 5508e56 commit df79595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PNGMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ private function extractRBG() {
*/
private function extractExif() {

if ( $this->_chunks[ 'eXIf' ] ) {
if ( isset ( $this->_chunks[ 'eXIf' ] ) ) {

$this->_metadata[ 'exif' ] = array_replace( $this->_metadata[ 'exif' ],
exif_read_data( 'data://image/jpeg;base64,' . base64_encode( $this->_chunks[ 'eXIf' ] ) ) );
Expand Down

0 comments on commit df79595

Please sign in to comment.