Skip to content

Conversation

@FrivalszkyP
Copy link
Contributor

It seems like I f**ked up my last commit big time. I checked it against a couple other images and unfortunately it re-encoded some IPTC data that was already encoded as UTF-8. So I built in a more intelligent exception handling, and just to be sure, I added a RuntimeException just in case anybody runs into the same problem as I did. I'm attaching a couple of images for testing.

europress-getty1
exif
mti1

These cases should cover it. One gives a pure ASCII output, the other gives a valid and json_decodeable UTF-8 output, and one gives some kind of Unicode or I don't know output that has to be utf8_encoded just to be sure. The mb_check_encoding method leaves the ASCII and the UTF-8 alone and only bothers with the more "exotic" strings.

@Miljar
Copy link
Collaborator

Miljar commented Feb 17, 2016

Please check the coding standards

@Miljar
Copy link
Collaborator

Miljar commented Feb 17, 2016

Have you checked the 3rd commend here? http://php.net/manual/en/function.iptcparse.php

@Miljar
Copy link
Collaborator

Miljar commented Mar 21, 2016

ping?

@coveralls
Copy link

coveralls commented Apr 27, 2016

Coverage Status

Coverage decreased (-1.0%) to 99.043% when pulling d17837d on FrivalszkyP:master into 002d07f on Miljar:master.

@FrivalszkyP
Copy link
Contributor Author

Sorry for the delay. I have no idea what the problem is now. I commited a few changes, but if I run a php code beutifier, it fixes much more than what I did (things that I did not touch).

@FrivalszkyP
Copy link
Contributor Author

I'm not sure what the problem is with Travis CI. Can you help me out please?

@coveralls
Copy link

coveralls commented Jul 20, 2016

Coverage Status

Coverage decreased (-2.6%) to 97.424% when pulling 36c5dcf on FrivalszkyP:master into 002d07f on Miljar:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.6%) to 97.424% when pulling 8658207 on FrivalszkyP:master into 002d07f on Miljar:master.

1 similar comment
@coveralls
Copy link

coveralls commented Jul 20, 2016

Coverage Status

Coverage decreased (-2.6%) to 97.424% when pulling 8658207 on FrivalszkyP:master into 002d07f on Miljar:master.

@coveralls
Copy link

coveralls commented Jul 21, 2016

Coverage Status

Coverage decreased (-2.08%) to 97.921% when pulling a047073 on FrivalszkyP:master into 002d07f on Miljar:master.

@coveralls
Copy link

coveralls commented Jul 21, 2016

Coverage Status

Coverage decreased (-2.05%) to 97.945% when pulling 420c6b5 on FrivalszkyP:master into 002d07f on Miljar:master.

@coveralls
Copy link

coveralls commented Jul 21, 2016

Coverage Status

Coverage decreased (-2.05%) to 97.945% when pulling a6739f1 on FrivalszkyP:master into 002d07f on Miljar:master.

@FrivalszkyP FrivalszkyP changed the title Checking Exiftool output against UTF-8 encoding more elegantly UTF-8 checking and encoding param support for exiftool Jul 21, 2016
@coveralls
Copy link

coveralls commented Jul 21, 2016

Coverage Status

Coverage decreased (-0.9%) to 99.087% when pulling 4a6a2d5 on FrivalszkyP:master into 002d07f on Miljar:master.

@coveralls
Copy link

coveralls commented Jul 21, 2016

Coverage Status

Coverage decreased (-0.9%) to 99.087% when pulling 2acac64 on FrivalszkyP:master into 002d07f on Miljar:master.

@Miljar Miljar merged commit f411c27 into PHPExif:master Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants