4 ms·
>21MB of gifs on the readme Why?
by tenryuu 8y ago
>21MB of gifs on the readme
Why?
- Sephr 8y agoA good solution would be termtosvg[1] styled to look like Sublime Text 3. [1] https://github.com/nbedos/termtosvg https://github.com/nbedos/termtosvg
- solidr53 8y agoNice one!
- nkristoffersen 8y agoNot supported in all browsers I thought? I recall a browser couldn’t do SVG animations
- yoavm 8y agoOr just an mp4 video. I converted (with ffmpeg) one GIF and it turned from 6MB to 1.5MB without any parameters settings, and still looking perfect.
- notheguyouthink 8y agoI would imagine because the author wants to show moving pictures of the project.
- tenryuu 8y agoyes, but a 15 fps gif, where a majority of frames are just duplicates of the previous image? AND 265 colours? (Photoshop crashed my GPU trying to even display the this) I could cut this shit down to less than 1MB if I tried, retaining the horrible gif format. There's no excuse for the file sizes to be this dramatic, apart from outright laziness
- randy3k 8y agoI was using a software to capture the screen as GIF. The original file size for a single file was around 2x mb. I am by no mean an image expert, so I only used ImageOptim and some online services. And they are what I got. I will be glad to know if you know how I could downsize improperly a GIF.
- tenryuu 8y agoDepending on how the desktop is encoded (sometimes it's a video encoded to a gif), you may get artifacts etc. that make every frame different. But if that's not the case, and the snapshot of each frame is pretty much 1:1 on what's on the desktop, you can use Imagemagick to remove duplicate frames https://www.imagemagick.org/Usage/anim_opt/#removedups https://www.imagemagick.org/Usage/anim_opt/#removedups And right above this paragraph is a dope technique to use overlays and a non-dispose of frames to make the gif only change which pixels are being updated (like a video format I guess). This might sound pretty complex, and sure, That's fair, we are coming up on 30 years since an update to the format. People just generally use videos these days for desktop recording since they're more suited for the job, at a even lower filesize
- notheguyouthink 8y ago> This might sound pretty complex, and sure, That's fair, we are coming up on 30 years since an update to the format. People just generally use videos these days for desktop recording since they're more suited for the job, at a even lower filesize Out of curiosity, any idea what formats you'd choose to embed in a Github readme? Videos or otherwise, I'm not sure which play well when embedded, and are GitHub allowed, etc.