You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GIF: multiple comment blocks for a frame are run together #6293
I made PR #6294 to address this, that will separate the comments with \r\n.
I admit that such cases are rare, but I have a few found in the wild. Unfortunately most of them have the multiple comments after the last image block, and at present I see no way in Pillow to access comments beyond the last image block. I do have one with 10 comment blocks before the image, a logo from my former employer:
If I try ImageMagick, identify -verbose relayhealth.gif, I get only "Title:"
So my quest to see if there was standard behaviour for this did not succeed.
And in all of the images you've found in the wild, the text is all such that it makes sense for them to be separated by newlines? No words split between comment blocks?
I combed through all the GIFs I have for those with more than one comment block. The result is in https://gist.github.com/raygard/3169ddef212679713d5e7dce81b21b67 . Most are over 20 years old, accumulated from old backups of my kids computers and such. I don't see any that would look right if run together. I realize it's probably a rare situation and maybe not worth the effort to mess with. Especially in Pillow, where (AFAIK) we can't currently even pick up comments after the last image, and that's where most of these came from.
Activity
radarhere commentedon May 20, 2022
I tried to see what
exiftooldid, but it only returns the first comment.https://www.metadata2go.com/, https://exifdata.com/ and https://jimpl.com/ do the same.
If I try ImageMagick,
identify -verbose relayhealth.gif, I get only "Title:"So my quest to see if there was standard behaviour for this did not succeed.
And in all of the images you've found in the wild, the text is all such that it makes sense for them to be separated by newlines? No words split between comment blocks?
raygard commentedon May 20, 2022
I combed through all the GIFs I have for those with more than one comment block. The result is in https://gist.github.com/raygard/3169ddef212679713d5e7dce81b21b67 . Most are over 20 years old, accumulated from old backups of my kids computers and such. I don't see any that would look right if run together. I realize it's probably a rare situation and maybe not worth the effort to mess with. Especially in Pillow, where (AFAIK) we can't currently even pick up comments after the last image, and that's where most of these came from.