After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619432 - TagLib# does not support GIF files
TagLib# does not support GIF files
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Metadata
GIT
Other All
: Normal normal
: 0.7.1
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks: 618683
 
 
Reported: 2010-05-23 12:40 UTC by Mike Gemünde
Modified: 2010-06-19 14:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Extend Validators to specify an own comment string for the test (2.58 KB, patch)
2010-05-23 12:40 UTC, Mike Gemünde
none Details | Review
Add Validator to test removal of tags from files (2.58 KB, patch)
2010-05-23 12:40 UTC, Mike Gemünde
none Details | Review
Add tests for GIF support (20.59 KB, patch)
2010-05-23 12:40 UTC, Mike Gemünde
none Details | Review
Introduce support for GIF files (36.12 KB, patch)
2010-05-23 12:45 UTC, Mike Gemünde
none Details | Review
Introduce support for GIF files (36.12 KB, patch)
2010-05-23 12:50 UTC, Mike Gemünde
committed Details | Review
Extend Validators to specify an own comment string for the test (2.58 KB, patch)
2010-05-23 12:50 UTC, Mike Gemünde
committed Details | Review
Add Validator to test removal of tags from files (2.58 KB, patch)
2010-05-23 12:50 UTC, Mike Gemünde
committed Details | Review
Add tests for GIF support (20.59 KB, patch)
2010-05-23 12:50 UTC, Mike Gemünde
committed Details | Review

Description Mike Gemünde 2010-05-23 12:40:03 UTC
This patches introduces GIF support to TagLib#
Comment 1 Mike Gemünde 2010-05-23 12:40:09 UTC
Created attachment 161778 [details] [review]
Extend Validators to specify an own comment string for the test

The current implementation of CommentModificationValidator and
TagCommentModificationValidator uses a fixed comment for testing.
This commit extends the Validators that the comment string can be
changed and an arbitrary comment can be used for the test.
Comment 2 Mike Gemünde 2010-05-23 12:40:20 UTC
Created attachment 161779 [details] [review]
Add Validator to test removal of tags from files

A new Validator for the image tests is added which can be used to
test if tags are correctly removed from files.
Comment 3 Mike Gemünde 2010-05-23 12:40:42 UTC
Created attachment 161781 [details] [review]
Add tests for GIF support

This commit adds a bunch of tests for the GIF support. The sample files
are created with GIMP and modified with exiftool. Some sample files are
hand-edited to provide input data for some special tests.
Comment 4 Mike Gemünde 2010-05-23 12:45:36 UTC
Created attachment 161782 [details] [review]
Introduce support for GIF files

One Commit got lost.
Comment 5 Mike Gemünde 2010-05-23 12:50:08 UTC
Created attachment 161783 [details] [review]
Introduce support for GIF files

This commit introduces support for GIF files. A GIF file is parsed
completely and XMP metadata and GIF comments are extracted. Additionally,
the size of the image is extracted. Since GIF files can be used as
an animation, it would be reasonable to determine some Properties
which are related to Audio/Video files. This is currently not covered.
Comment 6 Mike Gemünde 2010-05-23 12:50:22 UTC
Created attachment 161784 [details] [review]
Extend Validators to specify an own comment string for the test

The current implementation of CommentModificationValidator and
TagCommentModificationValidator uses a fixed comment for testing.
This commit extends the Validators that the comment string can be
changed and an arbitrary comment can be used for the test.
Comment 7 Mike Gemünde 2010-05-23 12:50:41 UTC
Created attachment 161785 [details] [review]
Add Validator to test removal of tags from files

A new Validator for the image tests is added which can be used to
test if tags are correctly removed from files.
Comment 8 Mike Gemünde 2010-05-23 12:50:53 UTC
Created attachment 161786 [details] [review]
Add tests for GIF support

This commit adds a bunch of tests for the GIF support. The sample files
are created with GIMP and modified with exiftool. Some sample files are
hand-edited to provide input data for some special tests.
Comment 9 Ruben Vermeersch 2010-05-23 13:01:06 UTC
Review of attachment 161783 [details] [review]:

Very clean patch. Am not going to pretend I know the details of GIF to say if it's correct or not, but the tests you supplied give me confidence.

Extremely good stuff Mike, this is going in!

::: src/TagLib/Gif/File.cs
@@ +396,3 @@
+				case 0x3B:
+					return;
+					break;

This line is unreachable. But don't worry about it, I added a commit to fix it.
Comment 10 Ruben Vermeersch 2010-05-23 13:03:35 UTC
Attachment 161783 [details] pushed as be86da1 - Introduce support for GIF files
Attachment 161784 [details] pushed as 52399c3 - Extend Validators to specify an own comment string for the test
Attachment 161785 [details] pushed as 05da6a1 - Add Validator to test removal of tags from files
Attachment 161786 [details] pushed as 065c3d8 - Add tests for GIF support