It is currently Wed Oct 18, 2017 4:24 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Sun Apr 17, 2016 12:15 pm 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3071
Location: Nacogdoches, Texas
Better than a live action one... :lol:

Anyway, it's all good now. I got an imgur profile for this sole purpose. :lol:


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 12:32 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5712
Location: Canada
345k for that.


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 12:34 pm 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3071
Location: Nacogdoches, Texas
Very little, I know. :lol:

...Now that I look at it though, it's a bit distracting... :lol:


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 12:50 pm 
Offline
Formerly 43110
User avatar

Joined: Wed Feb 05, 2014 7:01 am
Posts: 311
Location: us-east
To follow up with the excavation of my old files, I did not find what my animated GIF would of been without the hack filter but I imagine it was probably about 300KB.
I did however find my image prepossessing program that made the temporal lossyness.
In pseudocode it basically did this to each frame before they were inputed into GIMP for conversion to GIF:
Code:
gray(pixel) -> (pixel.R*0.299 + pixel.G*0.587 + pixel.B*0.114)

For each pixel in previous and current images:
    If abs( gray(previous) - gray(current) ) < 8:
        current = previous
    else:
        current = current

Nate to self: Never again leave your folders and files nameless (like "New Bitmap (2).bmp" in folder "temp5"), it makes them very hard to search for after 10 years.


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 2:20 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 3192
Location: Mountain View, CA, USA
Yeah, great: Content-Length: 354004. That isn't gonna piss anyone off on a latent connection, mobile, or cellular data. imgur also doesn't support gzip or deflate compression, so it's a full 354KB no matter what:

Code:
> HEAD /wmxKWiQ.gif HTTP/1.1
> Host: i.imgur.com
> User-Agent: curl/7.48.0
> Accept: */*
> Accept-Encoding: deflate, gzip

< HTTP/1.1 200 OK
< Last-Modified: Sun, 17 Apr 2016 18:57:17 GMT
< ETag: "181eb36f151da7a026dde5aac5281817"
< Content-Type: image/gif
< Fastly-Debug-Digest: eea700f0d6188db8a6c632620373f6a893f364187d2991ba8b1cdbfafd69224f
< cache-control: public, max-age=31536000
< Content-Length: 354004
< Accept-Ranges: bytes
< Date: Sun, 17 Apr 2016 21:21:01 GMT
< Age: 8621
< Connection: keep-alive
< X-Served-By: cache-iad2132-IAD, cache-sjc3124-SJC
< X-Cache: HIT, HIT
< X-Cache-Hits: 1, 1
< X-Timer: S1460928061.191844,VS0,VE0
< Access-Control-Allow-Methods: GET, OPTIONS
< Access-Control-Allow-Origin: *
< Server: cat factory 1.0


*double facepalm* At least it's hosted at imgur and not an upload here (I don't think the forum avatar upload would allow such sizes, I forget what we set the limit at).

As for "small-ifying a GIF", ImageMagick has an entire page dedicated to just that. If you have source material in a video format (ex. you want to convert AVI and a codec ImageMagick understands to GIF), there's a page on that too.


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 2:39 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6277
Location: Seattle
koitsu wrote:
Yeah, great: Content-Length: 354004. That isn't gonna piss anyone off on a latent connection, mobile, or cellular data.
I already added it to my adblock list....

Quote:
imgur also doesn't support gzip or deflate compression, so it's a full 354KB no matter what:
To be fair, the image formats hosted by imgur already use compression; there's not going to be much incremental improvement other than compressing GIF's (normally uncompressed) palette.


Top
 Profile  
 
PostPosted: Sun Apr 17, 2016 3:02 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 3192
Location: Mountain View, CA, USA
lidnariq wrote:
To be fair, the image formats hosted by imgur already use compression; there's not going to be much incremental improvement other than compressing GIF's (normally uncompressed) palette.

You're right, I forgot about that. I'll play tepples for a moment: but not all GIFs (animated or otherwise) use LZ77/LZW compression due to the patent debate. Sure, that patent expired in 2004, but there's really no way to guarantee every GIF file ever created is using compression, or that whatever was used to create a GIF present-day makes use of LZW or not (software being used may be "old" and by default *not* use LZW due to the patent concerns, and user has no idea that they should turn it on).

That said: use of deflate or gzip on GIFs using LZW can/does help. On Espozo's avatar, the actual transferred payload goes from 345KBytes to 306KBytes (39KB savings) using gzip (and I did turn on DEFLATE/gzip for .gif files in this context). In other words: gzip's compression model seems to work semi-well on this file, despite it using LZW (I checked):

Code:
$ curl --output /dev/null http://www.home.lan/wmxKWiQ.gif
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  345k  100  345k    0     0  48.7M      0 --:--:-- --:--:-- --:--:-- 56.2M

$ curl --compressed --output /dev/null http://www.home.lan/wmxKWiQ.gif
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  306k    0  306k    0     0  9826k      0 --:--:-- --:--:-- --:--:-- 9884k

Verification of LZW use in that GIF:
Code:
D:\downloads\ImageMagick>identify -verbose wmxKWiQ.gif | grep -c "Compression: LZW"
50

Anyway, point is: animated GIFs (especially ones with lots of frames or visuals) are extremely annoying, waste bandwidth, and really bring absolutely nothing to the table. When I was younger (back in the days when animated GIFs were the hot new thing), sure, I made several myself and they were prolific (esp. on Geocities). Those of us from that era now find them quite annoying (cuz people do stupid things like make 2-3MByte animated GIFs from portions of an anime, for example), especially if hosted by infrastructures or platforms which don't support caching. I myself do use an animated GIF avatar on occasion, but guess how big the file is? 3.9KBytes; I think it's like 4 frames of animation (edit: it's 6). Not too distracting either.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 12:04 am 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7227
Location: Chexbres, VD, Switzerland
Quote:
Does this website support animated gifs for profile icons?

Am I the only one who wish those were banned? I find those to be extremely annoying. In a few cases, like when the animation is really subtle it could be acceptable, but in, say, 85% of cases, animated gifs as avatar really annoys me.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 12:40 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5712
Location: Canada
koitsu wrote:
I don't think the forum avatar upload would allow such sizes, I forget what we set the limit at.

It's 20k.

Don't worry, though, this ugly distracting animation is worth more than 17 other avatars. Believe me.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 12:44 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5712
Location: Canada
koitsu wrote:
That isn't gonna piss anyone off on a latent connection, mobile, or cellular data.

Yeah, I've got 200mb on my cell phone, so the thought of an extra 330k just for reading an NesDev thread featuring Espozo doesn't thrill me.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 12:46 am 
Offline
User avatar

Joined: Wed Apr 02, 2008 2:09 pm
Posts: 1019
161KB
Image
82KB
Image
There are certainly ways to get it even smaller but... eh.
Edit: Mine's currently 4KB, but it can apparently be 1,273 bytes with absolutely no changes. I think I'd rather just reanimate it at some point if I ever change it.
Edit2: For completeness, here's one that's 300KB and 100% the same visually (I think):
Image

_________________
https://kasumi.itch.io/indivisible


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 6:18 am 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3071
Location: Nacogdoches, Texas
rainwarrior wrote:
I've got 200mb on my cell phone, so the thought of an extra 330k just for reading an NesDev thread featuring Espozo doesn't thrill me.

That's your problem. :lol:

lidnariq wrote:
I already added it to my adblock list....
koitsu wrote:
animated GIFs (especially ones with lots of frames or visuals) are extremely annoying, waste bandwidth, and really bring absolutely nothing to the table.
Bregalad wrote:
Am I the only one who wish those were banned? I find those to be extremely annoying.
rainwarrior wrote:
this ugly distracting animation

It's nice to know you guys like it. :lol: If it's truly the largest dilemma since WWII, I'll just revert back.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 7:04 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10050
Location: Rio de Janeiro - Brazil
I do find your new avatar pretty distracting and slightly annoying. When you asked about animated avatars I imagined you were going to make something original and relevant, not rip a video that wasn't made for small viewports and doesn't even loop. Not looping is a serious offense in an animated avatar, because it constantly draws attention when the animation wraps back to the beginning.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 7:19 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19093
Location: NE Indiana, USA (NTSC)
Espozo wrote:
rainwarrior wrote:
I've got 200mb on my cell phone, so the thought of an extra 330k just for reading an NesDev thread featuring Espozo doesn't thrill me.

That's your problem. :lol:

And unless you're willing to help solve the problem by paying rainwarrior's overage fees, you are part of the problem. Occasionally I tether my laptop to my aunt's phone when we go on long trips, and when I tether, I stick to low-bandwidth sites such as forums.nesdev.com. (I also turn on Firefox's tracking protection for its side effect of blocking advertisers that track users' interests across sites, which has the side effect of blocking the most data-heavy ads.) So with two admitted occasional users of cellular Internet here and a distracting rewind, I may end up taking one representative frame from the GIF to produce a PNG avatar.


Top
 Profile  
 
PostPosted: Mon Apr 18, 2016 11:58 am 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3071
Location: Nacogdoches, Texas
Quote:
I imagined you were going to make something original and relevant

My last avatar wasn't either. :lol: Anyway, when I get home, I'll change it. I don't know what else to use though, probably just the other one.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group