this post was submitted on 09 Sep 2024
14 points (100.0% liked)

Ask Lemmy

26701 readers
1643 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics.


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

This is likely a very niche request, but perhaps there's a genius here with the answer - or can point me to a better place to ask.

If I want it to look like a web page is loading an interlaced gif over an old modem connection, would there exist some tool to convert a given static image to an animated gif (preferably downsampled to 256 colours)?

You know, the one where it starts off as one giant coloured block which then gets progressively segmented into thinner lines with more detail as each interlaced line is received...

top 4 comments
sorted by: hot top controversial new old
[–] andrew_s@piefed.social 1 points 1 month ago (1 children)

I don't know if there's any tools that'll do that - I imagine it'd be an animation that you'd need to tediously build frame by frame. Gif is especially inefficient to simulate slowness because you need a new frame even when it's the same as the previous one, so the file would be massive. So you'd want to convert it to MP4 (which anything hosting it would probably do automatically) or use webp - this doesn't have particularly widespread support but it lets you create animations with a 'delay' element so you can hold certain frames. An example of that is here: https://lemmy.world/pictrs/image/218d951c-67b3-4589-ac94-8f661b32a8fc.webp (wait for it ...)

[–] noughtnaut@lemmy.world 1 points 1 month ago (1 children)

I understand what you say about needing to render every frame, but it's possible to use a very slow frame rate for the gif (eg. 1 frame every 2s).

[–] andrew_s@piefed.social 2 points 1 month ago

You can set a gif's FPS yeah. There's an app called gif.ski that lets you play around with this - add a folder full of PNGs to it and render a gif. The lowest the UI lets you select for FPS is 1 - I made one and stuck it here so you can see what that looks like.

You can use the same tool on the command line if you want a half frame per second rate, e.g.:
gifski --output interesting.gif --fps 0.5 --quality 70 *.png

[–] Bluetreefrog@lemmy.world 0 points 1 month ago

Rule 5. Locking.