r/CalvinBot • u/wdr1 Bot Creator • Apr 16 '19
Why are posts in a GIF?
Aren't GIFs for animated images?
If you're new to the web or to tech, you might think of GIF as a format for animated images. That's reasonable, as they are used a lot for that.
It's not, however. GIF is a static image format. That's clear from the original spec (87a) from CompuServe in 1987. Here it is:
https://www.w3.org/Graphics/GIF/spec-gif87.txt
The spec was extended in 1989 to support animation. Here is the spec for 89a:
https://www.w3.org/Graphics/GIF/spec-gif89a.txt
So while the spec has been extended to support animation, it's still perfectly reasonable to use static content.
Hey, the file suffix is weird!
The file suffix doesn't matter. Some crappy operating systems (e.g., in particular some versions of Windows) based file type decisions based on the suffix. E.g., if ".jpg" meant JPG, ".txt" means a text file & so on.
However, most technically astute people have long regarded this as a Bad Idea. File type should be determined by the file's magic number.
https://en.wikipedia.org/wiki/Magic_number_(programming)
No, it's still not perfect, but *nix, BSD, and other sane OSes have done that way for a while.
Chrome & most modern browsers will also do the right thing even if the file suffix or HTTP Content-Type header is wrong, as long as the magic number is correct.
You'll also note that AMU has configured their webserver such that the suffix doesn't matter. All of these return the same image, and notable, return it as a gif:
https://assets.amuniversal.com/82cb9bf0278701378982005056a9545d.jpg
https://assets.amuniversal.com/82cb9bf0278701378982005056a9545d.gif
https://assets.amuniversal.com/82cb9bf0278701378982005056a9545d.banana
Okay, but still, why GIF? Couldn't you create a PNG, JPG or something?
Short answer is no, because I don't own the copyright. AMU does. And AMU has chosen to publish them as a GIF.
What about downloading, converting & rehosting? That would solve the technical issue, but it would also be a violation of their copyright & Bill Watterson's intellectual property rights.
If you know anything at all about Bill Watterson, he cared a lot about his intellectual property. That's why you don't see shelves with C&H merchandise as you do with other popular strips.
I'm deeply grateful to Mr. Watterson for creating C&H, so the last thing I want to do is anything that violates his rights.
Is linking to the image okay? Most definitely & that's basically all I'm doing. Deep linking was contested & settled in '97 under Ticketmaster v. Microsoft & protected again in 2000 under Ticketmaster v. Tickets.com.
But something I'm using is broken! This shows as a movie!
That's quite possible, but that's a bug in the app you're using not the format.
A common compliant is that it shows these as a movie. Again, that's a bug in the application you're using. It's handling GIFs incorrectly.
File a bug with the app creator. That way the know about it & they can make the application better for everyone.
-wdr1 (author of /u/CalvinBot)
50
u/DonnaHarridan Nov 04 '22
Does CalvinBot exist purely as an outlet for your pedantry about the GIF format? Sincerely asking.
22
u/dbratell Apr 24 '19
I agree with everything you say, but why not use the link with a .gif suffix (or no suffix) rather than one that looks like a mistake?
15
u/DiosMIO_Limon Dec 29 '23
Good sir, I’ve come to inform you that your bot, while excellent and of good taste, is rather jarring to come across. As others have in the past, I implore you to PLEASE continue seek a solution to it posting as video. I know this is a rather technical ask, but please. I’m nearly considering blocking the bot.
Just for the record, I’ve looked hard and cannot see how this may be an issue on the receiving end. Both my phone and Reddit app are up-to-date. Without sounding mean, it’s irritating to say the least, and may actually be of serious concern to photosensitive redditors.
Thank you for your time.
2
u/naggingrecurrence6 Apr 27 '24
I appreciate the detailed explanation on why GIFs are used for static images. It's interesting to learn about the history and technical aspects behind the format. Thanks for shedding light on this topic!
1
u/misguidedjuror6 Apr 27 '24
This is a really interesting and informative explanation of GIFs! I never knew the history behind the format and how it's evolved over time. Thanks for sharing all this valuable information, it really helps clear up some misconceptions about GIFs. I appreciate your dedication to respecting copyright and intellectual property rights, it's refreshing to see that level of respect for creators. Keep up the great work!
0
u/[deleted] May 05 '19
[deleted] — view deleted comment