How to make here is such a timer in the picture?

The fact that it is generated via php. The question is how to implement this?

?email=mace%40mail.ru&e=1465707417&h=2s3
July 8th 19 at 15:30
3 answers
July 8th 19 at 15:32
Interesting idea.

If you save the picture, then we get SFII, which runs counter with the same place where it started when you first access the resource with this picture. I assume that when you request the server generates a set of images and combine them into a GIF. The number of frames can be viewed, for example, using the service picasion picasion.com/ru/split-animated-gif
When gluing 10000 pictures, GIF won't weigh 1G? - Reyes96 commented on July 8th 19 at 15:35
is there not 10000, but just only 60. Sifco generated only for a minute. And takes, by the way, polega almost. In my opinion much less to do. - Jacinto22 commented on July 8th 19 at 15:38
: well, look, picture size 697x150. GIF supports 256 colors. i.e., 10,000 images 697*150*256*10000/(8*1024^3) = 31.15 GB. Of course it is uncompressed. We see that you are using only two colors, i.e. we can not take 256 and 2. Then get of 0.24 GB. Not 1 GB. This is purely a superficial description. Plus you can find a lot of locations for compression (see LZW compression).
: Yes, I was also surprised by the volume of the generated file. - gardner commented on July 8th 19 at 15:41
July 8th 19 at 15:34
It is not necessary to do so.

But even in the page prescribe the titles that is given to the image.
And give yourself an HTML page with a timer.
+ a few PHP scripts to change the picture.
(there's apparently done so)
To me the mail came a letter with this here picture. And I was immediately interested in how they did it? - Reyes96 commented on July 8th 19 at 15:37
The timer to a certain time stops of course but refresh the page goes on. - Jacinto22 commented on July 8th 19 at 15:40
apparently there is a flood picture is not unloaded fully and constantly loaded in the stream.
And when the timer stops, it's the server terminated the connection.
No more ideas.

I.e. two options. In the header image and HTML page.
or
in the loop is generated and the image is reset every second. - gardner commented on July 8th 19 at 15:43
: just a participant at 60 frames generated. - Dell68 commented on July 8th 19 at 15:46
Yeah, right, forgot that such a feature exists =) - Dell68 commented on July 8th 19 at 15:49
July 8th 19 at 15:36
By the way the solution was a link shared xEdelweiss big thanks to him.

And here is the script: you can see how things are done here.

Find more questions by tags PHP