コード例 #1
0
ファイル: RawLeicaDigilux2Test.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("raw-samples/RAW", "RAW_LEICA_DIGILUX2_SRGB.RAW",
                   false,
                   new RawLeicaDigilux2TestInvariantValidator()
                   );
 }
コード例 #2
0
ファイル: BGO625367Test.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("sample_bgo625367.jpg",
                   false,
                   new BGO625367TestInvariantValidator()
                   );
 }
コード例 #3
0
 public void Test()
 {
     ImageTest.Run("sample_recursive_ifd.jpg",
                   false,
                   new RecursiveIFDTestInvariantValidator()
                   );
 }
コード例 #4
0
 public void Test()
 {
     ImageTest.Run("sample_canon_bibble5.jpg",
                   new JpegCanonBibble5TestInvariantValidator(),
                   NoModificationValidator.Instance
                   );
 }
コード例 #5
0
ファイル: JpegPropertyTest.cs プロジェクト: rygos/iTagger
        public void Test()
        {
            // This file is originally created with GIMP and the metadata was modified
            // by exiftool.
            // The test is to test some properties of ImageTag
            ImageTest.Run("sample_gimp_exiftool.jpg",
                          true,
                          new JpegPropertyTestInvariantValidator(),
                          NoModificationValidator.Instance,
                          new PropertyModificationValidator <string> ("Creator", "Isaac Newton", "Albert Einstein"),
                          new PropertyModificationValidator <string> ("Copyright", "Free to Copy", "Place something here"),
                          new PropertyModificationValidator <string> ("Comment", "This is an image Comment", "And here comes another image comment"),
                          new PropertyModificationValidator <string> ("Title", "Sunrise", "Eclipse"),
                          new PropertyModificationValidator <string> ("Software", "Exiftool", "Unit tests"),
                          new PropertyModificationValidator <string[]> ("Keywords", new string [] { "keyword 1", "keyword 2" }, new string [] { "keyword a", "keyword b", "keyword 2" }),
                          new PropertyModificationValidator <uint?> ("Rating", 5, 2),

                          new TagPropertyModificationValidator <string> ("Creator", null, "Albert Einstein", TagTypes.TiffIFD, true),
                          new TagPropertyModificationValidator <string> ("Copyright", "Free to Copy", "Place something here", TagTypes.TiffIFD, true),
                          new TagPropertyModificationValidator <string> ("Comment", null, "And here comes another image comment", TagTypes.TiffIFD, true),
                          new TagPropertyModificationValidator <string> ("Software", "Exiftool", "Unit tests", TagTypes.TiffIFD, true),

                          new TagPropertyModificationValidator <string> ("Creator", "Isaac Newton", "Albert Einstein", TagTypes.XMP, true),
                          new TagPropertyModificationValidator <string> ("Copyright", null, "Place something here", TagTypes.XMP, true),
                          new TagPropertyModificationValidator <string> ("Comment", "This is an image Comment", "And here comes another image comment", TagTypes.XMP, true),
                          new TagPropertyModificationValidator <string> ("Title", "Sunrise", "Eclipse", TagTypes.XMP, true),
                          new TagPropertyModificationValidator <string> ("Software", null, "Unit tests", TagTypes.XMP, true),
                          new TagPropertyModificationValidator <string[]> ("Keywords", new string [] { "keyword 1", "keyword 2" }, new string [] { "keyword a", "keyword b", "keyword 2" }, TagTypes.XMP, true),
                          new TagPropertyModificationValidator <uint?> ("Rating", 5, 2, TagTypes.XMP, true),

                          new TagPropertyModificationValidator <string> ("Comment", "This is an image Comment", "And here comes another image comment", TagTypes.JpegComment, true)
                          );
        }
コード例 #6
0
ファイル: BGO493530Test.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("sample_bgo493530.jpg",
                   false,
                   new BGO493530TestInvariantValidator()
                   );
 }
コード例 #7
0
        public void Test()
        {
            // This file is originally created with GIMP and was modified with png crush:
            ImageTest.Run("sample_gimp_pngcrush.png",
                          true,
                          new PngGimpPngcrushTestInvariantValidator(),
                          NoModificationValidator.Instance,

                          new PropertyModificationValidator <string> ("Comment", "Modified with pngcrush", "$% ¬ Test Comment äö "),
                          new PropertyModificationValidator <string> ("Creator", "Isaac Newton", "Albert Einstein"),
#if HAVE_SHARPZIPLIB
                          new PropertyModificationValidator <string> ("Title", "Sunrise", "Eclipse"),
#endif
                          new TagPropertyModificationValidator <string> ("Comment", "Modified with pngcrush", "$% ¬ Test Comment äö ", TagTypes.Png, true),
                          new TagPropertyModificationValidator <string> ("Creator", "Isaac Newton", "Albert Einstein", TagTypes.Png, true),
#if HAVE_SHARPZIPLIB
                          new TagPropertyModificationValidator <string> ("Title", "Sunrise", "Eclipse", TagTypes.Png, true),
#endif
                          new TagPropertyModificationValidator <string> ("Comment", null, "$% ¬ Test Comment äö ", TagTypes.XMP, false),
                          new TagPropertyModificationValidator <string> ("Creator", null, "Albert Einstein", TagTypes.XMP, false),
                          new TagPropertyModificationValidator <string> ("Title", null, "Eclipse", TagTypes.XMP, false),
                          new TagKeywordsModificationValidator(TagTypes.XMP, false),
                          new RemoveMetadataValidator(TagTypes.Png)
                          );
        }
コード例 #8
0
 public void Test()
 {
     ImageTest.Run("sample_badifdentrytype.jpg",
                   false,
                   new InvalidIFDEntryTypeTestInvariantValidator()
                   );
 }
コード例 #9
0
 public void Test()
 {
     ImageTest.Run("sample_null_orientation.jpg",
                   new NullOrientationInvariantValidator(),
                   NoModificationValidator.Instance
                   );
 }
コード例 #10
0
 public void Test()
 {
     ImageTest.Run("sample_olympus_corrupt_mn.jpg",
                   false,
                   new JpegOlympusCorruptMNTestInvariantValidator()
                   );
 }
コード例 #11
0
ファイル: DngLeicaM8Test.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("raw-samples/DNG", "RAW_LEICA_M8.DNG",
                   false,
                   new DngLeicaM8InvariantValidator()
                   );
 }
コード例 #12
0
 public void Test()
 {
     ImageTest.Run("sample_invalidifdoffset.jpg",
                   false,
                   new InvalidIFDOffsetTestInvariantValidator()
                   );
 }
コード例 #13
0
 public void Test()
 {
     ImageTest.Run("sample_bgo631333.jpg",
                   new BGO631333TestInvariantValidator(),
                   NoModificationValidator.Instance
                   );
 }
コード例 #14
0
ファイル: TiffGimp1Test.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("sample_gimp_lzw.tiff",
                   ImageTest.CompareLargeImages,
                   new TiffGimp1TestInvariantValidator(),
                   NoModificationValidator.Instance
                   );
 }
コード例 #15
0
ファイル: JpegNoMetadataTest.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     ImageTest.Run("sample_no_metadata.jpg",
                   new JpegNoMetadataTestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new NoModificationValidator(),
                   new TagCommentModificationValidator(TagTypes.TiffIFD, false),
                   new TagCommentModificationValidator(TagTypes.XMP, false),
                   new TagKeywordsModificationValidator(TagTypes.XMP, false)
                   );
 }
コード例 #16
0
 public void Test()
 {
     ImageTest.Run("sample_nikon1_bibble5.jpg",
                   new JpegNikon1Bibble5TestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new CommentModificationValidator(string.Empty),
                   new TagCommentModificationValidator(null, TagTypes.TiffIFD, true),
                   new TagCommentModificationValidator(null, TagTypes.XMP, true),
                   new TagKeywordsModificationValidator(new string[] { }, TagTypes.XMP, true)
                   );
 }
コード例 #17
0
 public void Test()
 {
     ImageTest.Run("sample_xap.jpg",
                   new XapTestInvariantValidator(),
                   new NoModificationValidator(),
                   new CommentModificationValidator("Communications"),
                   new TagCommentModificationValidator("Communications", TagTypes.TiffIFD, true),
                   new TagCommentModificationValidator("Communications", TagTypes.XMP, true),
                   new KeywordsModificationValidator(new string [] { "Communications" }),
                   new TagKeywordsModificationValidator(new string [] { "Communications" }, TagTypes.XMP, true)
                   );
 }
コード例 #18
0
ファイル: PngGimpTest.cs プロジェクト: rygos/iTagger
 public void Test()
 {
     // This file is originally created with GIMP.
     ImageTest.Run("sample_gimp.png",
                   true,
                   new PngGimpTestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new CommentModificationValidator("Created with GIMP"),
                   new TagCommentModificationValidator("Created with GIMP", TagTypes.Png, true),
                   new TagKeywordsModificationValidator(TagTypes.XMP, false),
                   new RemoveMetadataValidator(TagTypes.Png)
                   );
 }
コード例 #19
0
 public void Test()
 {
     // This file is originally created with GIMP and the metadata was modified
     // by exiftool.
     ImageTest.Run("sample_exiftool.gif",
                   true,
                   new GifExiftoolTestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new TagKeywordsModificationValidator(new[] { "Keyword 1", "Keyword 2" }, TagTypes.XMP, true),
                   new CommentModificationValidator("Created with GIMP"),
                   new TagCommentModificationValidator("Created with GIMP", TagTypes.GifComment, true),
                   new RemoveMetadataValidator(TagTypes.GifComment | TagTypes.XMP),
                   new RemoveMetadataValidator(TagTypes.GifComment | TagTypes.XMP, TagTypes.GifComment)
                   );
 }
コード例 #20
0
 public void Test()
 {
     // This file is originally created with GIMP and the metadata was modified
     // by exiftool. Furthermore, the file is modified in the following way:
     // (1) the blocks which contain the metadata are moved to the end of the file.
     //     This is allowed and should be handled correctly by taglib.
     // (2) XMP Block is removed.
     ImageTest.Run("sample_exiftool_tangled3.gif",
                   true,
                   new GifExiftoolTangled3TestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new TagKeywordsModificationValidator(new string[] { }, TagTypes.XMP, false),
                   new CommentModificationValidator("Created with GIMP"),
                   new TagCommentModificationValidator("Created with GIMP", TagTypes.GifComment, true),
                   new RemoveMetadataValidator(TagTypes.GifComment)
                   );
 }
コード例 #21
0
 public void Test()
 {
     // This file is originally created with GIMP and the metadata was modified
     // by exiftool. A very long comment is added by exiftool because such comments
     // are stored in multiple sub-blocks. This should be handled by taglib.
     ImageTest.Run("sample_exiftool_long_comment.gif",
                   true,
                   new GifExiftoolLongCommentTestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new TagKeywordsModificationValidator(new string[] { }, TagTypes.XMP, true),
                   new CommentModificationValidator(long_comment_orig),
                   new CommentModificationValidator(long_comment_orig, long_comment_test),
                   new TagCommentModificationValidator(long_comment_orig, TagTypes.GifComment, true),
                   new TagCommentModificationValidator(long_comment_orig, long_comment_test, TagTypes.GifComment, true),
                   new RemoveMetadataValidator(TagTypes.GifComment | TagTypes.XMP),
                   new RemoveMetadataValidator(TagTypes.GifComment | TagTypes.XMP, TagTypes.GifComment),
                   new RemoveMetadataValidator(TagTypes.GifComment | TagTypes.XMP, TagTypes.XMP)
                   );
 }
コード例 #22
0
 public void Test()
 {
     // This file is originally created with GIMP and the metadata was modified
     // by exiftool. Furthermore, the file is modified in the following way:
     // (1) the version 89a is substituted by 87a, this leads to an invalid 87a
     //     file, but we change the version if we write metadata.
     // (2) the blocks which contain the metadata are moved to the end of the file.
     //     This is allowed and should be handled correctly by taglib.
     // (3) Gif Comment block is removed
     ImageTest.Run("sample_exiftool_tangled2.gif",
                   true,
                   new GifExiftoolTangled2TestInvariantValidator(),
                   NoModificationValidator.Instance,
                   new TagKeywordsModificationValidator(new[] { "Keyword 1", "Keyword 2" }, TagTypes.XMP, true),
                   new CommentModificationValidator(),
                   new TagCommentModificationValidator(null, TagTypes.GifComment, false),
                   new RemoveMetadataValidator(TagTypes.XMP)
                   );
 }
コード例 #23
0
 public void Test()
 {
     ImageTest.Run(TestPath.GetRawSubDirectory("DNG"), "RAW_LEICA_M8.DNG",
                   false, new DngLeicaM8InvariantValidator());
 }
コード例 #24
0
 public void Test()
 {
     ImageTest.Run(TestPath.GetRawSubDirectory("RAW"), "RAW_LEICA_DIGILUX2_SRGB.RAW",
                   false, new RawLeicaDigilux2TestInvariantValidator());
 }