Skip to content

Commit 8b99398

Browse files
committed
Investigating issue 25
1 parent a3dff85 commit 8b99398

10 files changed

+522
-0
lines changed

issue25/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Attempt at reproducing https://github.com/Frameright/php-image-metadata-parser/issues/25
2+
3+
### Quickly run my attempt
4+
5+
Make sure you have PHP interpreter and Composer installed on your system:
6+
7+
```bash
8+
php --version
9+
composer --version
10+
```
11+
12+
Then run the following commands:
13+
14+
```bash
15+
# Clone my attempt at reproducing the issue
16+
git clone https://github.com/Frameright/php-image-metadata-parser
17+
cd php-image-metadata-parser/issue25
18+
19+
# Install the latest version of the PHP library
20+
composer require frameright/image-metadata-parser
21+
22+
# Run this simple PHP script (see details below about what it does)
23+
./image-metadata-parser.php
24+
```
25+
26+
This PHP script doesn't do much. It just loads the image file and prints out XMP metadata:
27+
28+
```
29+
#!/usr/bin/env php
30+
<?php
31+
32+
// load the pulled library:
33+
require __DIR__ . '/vendor/autoload.php';
34+
35+
use CSD\Image\Image;
36+
37+
$image = Image::fromFile('reproducer.jpg');
38+
$xmp_metadata = $image->getXmp();
39+
40+
// nicely format output with indentation and extra space:
41+
$xmp_metadata->setFormatOutput(true);
42+
43+
print_r($xmp_metadata->getString());
44+
```

issue25/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"frameright/image-metadata-parser": "^1.1"
4+
}
5+
}

issue25/composer.lock

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

issue25/exiftool.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
# exiftool -XMP -b reproducer.jpg | xmlstarlet fo > exiftool_output.xml
4+
exiftool -XMP -b frameright.jpg | xmlstarlet fo > exiftool_output_good.xml

0 commit comments

Comments
 (0)