-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exifprint_lint #1738
Merged
Merged
exifprint_lint #1738
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,18 +112,21 @@ This is a simple program to demonstrate dumping _**Exif**_ metadata in common fo | |
#### exifprint | ||
|
||
``` | ||
Usage: exifprint [ path | --version | --version-test ] | ||
Usage: exifprint [ [--lint] path | --version | --version-test ] | ||
``` | ||
|
||
| Arguments | Description | | ||
|:-- |:--- | | ||
| path | Path to image | | ||
| --lint path | Path to image. Type metadata test | | ||
| --version | Print version information from build | | ||
| --version-test | Tests Exiv2 VERSION API | | ||
|
||
This program demonstrates how to print _**Exif**_ metadata in an image. This program is also discussed in the platform ReadMe.txt file included in a build bundle. The option **--version** was added to enable the user to build a test application which dumps the build information. The option **--version-test** was added to test the macro EXIV2\_TEST\_VERSION() in **include/exiv2/version.hpp**. | ||
|
||
There is one other unique feature of this program. It is the only test/sample program which can use the EXV\_UNICODE\_PATH build feature of Exiv2 on Windows. | ||
You can process the metadata in two different ways. The default prints the metadata. The option --lint instructs exifprint to compare the type of the metadata to the standard. | ||
|
||
There is another unique feature of this program. It is the only test/sample program which can use the EXV\_UNICODE\_PATH build feature of Exiv2 on Windows. | ||
|
||
_Code: [exifprint.cpp](samples/exifprint.cpp)_ | ||
|
||
|
@@ -656,4 +659,4 @@ Read an XMP packet from a file, parse and re-serialize it. | |
|
||
Robin Mills<br> | ||
[email protected]<br> | ||
Revised: 2020-11-20 | ||
Revised: 2021-06-23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path | ||
@CopyTmpFiles("$data_path/Stonehenge.exv") | ||
|
||
class test_exifprint_lint(metaclass=CaseMeta): | ||
url = "https://github.com/Exiv2/exiv2/pull/1738" | ||
filename = path("$tmp_path/Stonehenge.exv") | ||
commands = [ "$exifprint --lint $filename" | ||
, '$exiv2 -M"set Exif.Image.ImageDescription Short 3" $filename' | ||
, "$exifprint --lint $filename" | ||
] | ||
stderr = ["""Exif.Nikon3.ExposureTuning type Undefined (7) expected Short (3) | ||
""","","""Exif.Image.ImageDescription type Short (3) expected Ascii (2) | ||
Exif.Nikon3.ExposureTuning type Undefined (7) expected Short (3) | ||
""" | ||
] | ||
stdout = [""]*len(commands) | ||
retval = [2,0,2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clanmills is this maybe worth tracking in an issue?
Also didn't this now disable
-fstack-clash-protection
for all Apple machine? e.g. also for the normal x86 platforms?