It is currently Mon May 05, 2025 3:05 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
Offline
 Post subject: I realised I can make animated gifs
Post #1 Posted: Fri Apr 10, 2015 12:10 am 
Gosei
User avatar

Posts: 1378
Location: wHam!lton, Aotearoa
Liked others: 253
Was liked: 105
Image

_________________
Revisiting Go - Study Journal
My Programming Blog - About the evolution of my go bot.


This post by Loons was liked by 4 people: Bill Spight, Boidhre, Bonobo, EdLee
Top
 Profile  
 
Offline
 Post subject:
Post #2 Posted: Fri Apr 10, 2015 1:37 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Hi Loons, you're so hi-tech. How did you make that toy ? :tmbup:

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #3 Posted: Fri Apr 10, 2015 2:07 am 
Gosei
User avatar

Posts: 1378
Location: wHam!lton, Aotearoa
Liked others: 253
Was liked: 105
With the ugliest Matlab code ever written ;p. Actually, MATLAB's animated GIF functionality is the ugly aspect.

_________________
Revisiting Go - Study Journal
My Programming Blog - About the evolution of my go bot.

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #4 Posted: Fri Apr 10, 2015 7:37 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Loons wrote:
With the ugliest Matlab code ever written ;p. Actually, MATLAB's animated GIF functionality is the ugly aspect.


I have created animated gifs of SGF files (for problem solutions and also for games) using sgftools (and my hack to make it look nicer) and gifsicle.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #5 Posted: Fri Apr 10, 2015 9:52 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
RBerenguel wrote:
Loons wrote:
With the ugliest Matlab code ever written ;p. Actually, MATLAB's animated GIF functionality is the ugly aspect.


I have created animated gifs of SGF files (for problem solutions and also for games) using sgftools (and my hack to make it look nicer) and gifsicle.


I was on iPad so I didn't have any of the files. Here's a Go Seigen game, using just normal sgftopng. If I was to create it now I'd use the hacks I added to it so the board and stones look nicer (at the expense of a heavier GIF)


Attachments:
GoSeigen-progame_41658-.gif
GoSeigen-progame_41658-.gif [ 2.24 MiB | Viewed 7328 times ]

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

This post by RBerenguel was liked by 3 people: Bonobo, EdLee, Loons
Top
 Profile  
 
Offline
 Post subject:
Post #6 Posted: Fri Apr 10, 2015 2:10 pm 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
RBerenguel wrote:
If I was to create it now I'd use the hacks I added to it so the board and stones look nicer (at the expense of a heavier GIF)
Hi RBerenguel, could you do it and show us the nicer result ? :)

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #7 Posted: Sat Apr 11, 2015 3:01 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Well, yes, but no... The animated gif result is 136 mb :D Gif is very, very inefficient for compressing. I'm now running gifscile with O3 to see if it gets smaller. Will report back after groceries ;)

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #8 Posted: Sat Apr 11, 2015 3:25 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
RBerenguel wrote:
Well, yes, but no... The animated gif result is 136 mb :D Gif is very, very inefficient for compressing. I'm now running gifscile with O3 to see if it gets smaller. Will report back after groceries ;)


You can download the optimised 98MB file (yikes) from here. (it is from my Public Dropbox folder, so it may go eventually, as of now it is still uploading so wait 30 minutes or so, I have shitty upload speed.)

I just downloaded and APNG encoder, maybe animated pngs are better optimised (or Webp, I'll try that instead later, maybe.) A good delta-frame-compressor should get the file pretty small, since stones and non-stoned areas are always the same, so the deltas are pretty straightforward

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #9 Posted: Sat Apr 11, 2015 4:34 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Holy sh*t. Converted to apng (well, recreated as apng.) Apng is a well, not-very-implemented standard, with animated pngs with alpha channels. You can have it in Chrome with a plugin/development version, in Safari v>8 and any Firefox. The file is a whooping 2.3 MB. For comparison, the image with an empty board or a few stones is ~1MB.

Behind hide tags, as I said it will only animate on Firefox straight out of the box.

Attachment:
--.png
--.png [ 2.22 MiB | Viewed 7185 times ]

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net


This post by RBerenguel was liked by 2 people: Bonobo, Loons
Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #10 Posted: Sat Apr 11, 2015 4:47 am 
Oza
User avatar

Posts: 2221
Location: Germany
Liked others: 8268
Was liked: 924
Rank: OGS 9k
OGS: trohde
Universal go server handle: trohde
Awesome!

Here’s the Chrome plugin: APNG for Chrome, “Animated PNG support for WebKit/Blink browsers”

_________________
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)


This post by Bonobo was liked by: RBerenguel
Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #11 Posted: Sat Apr 11, 2015 4:56 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Bonobo wrote:


Thanks!

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net


This post by RBerenguel was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject:
Post #12 Posted: Sat Apr 11, 2015 5:49 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
RBerenguel wrote:
it will only animate on Firefox
Thanks. On Safari on an ancient iPhone 4S, I can see only the first :b1: at star point,
but it looks nice. Will try Firefox after sleep. :)

Top
 Profile  
 
Offline
 Post subject: Re:
Post #13 Posted: Sat Apr 11, 2015 6:47 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
EdLee wrote:
RBerenguel wrote:
it will only animate on Firefox
Thanks. On Safari on an ancient iPhone 4S, I can see only the first :b1: at star point,
but it looks nice. Will try Firefox after sleep. :)


For mobile safari, you seem to need iOS 8.3 Better than nothing ;-)

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #14 Posted: Sun Apr 12, 2015 2:53 am 
Lives in gote
User avatar

Posts: 499
Location: Germany
Liked others: 213
Was liked: 96
Rank: Fox 3D
GD Posts: 325
Chrome on iOS 8.2 works, too.

_________________
Stay out of my territory! (W. White, aka Heisenberg)

Top
 Profile  
 
Offline
 Post subject: Re: I realised I can make animated gifs
Post #15 Posted: Sun Apr 12, 2015 4:43 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
I guess then Safari on iOS 8.2 also works (unless Apple has changed how it makes 2-nd party browsers work, Chrome uses the same renderer and JS engine as Safari)

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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 © 2000, 2002, 2005, 2007 phpBB Group