From 602652b13cb1d2a737d094558fbef4cb8e2a1110 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 16 Mar 2023 14:19:41 +0900 Subject: Proofread and update metadata --- _layout/footer.html | 2 +- _layout/hair.html | 2 -- _layout/head.html | 6 ++++++ _libs/fead/sources | 1 - blog/gifrip.md | 6 +++--- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/_layout/footer.html b/_layout/footer.html index c8c3838..5ba0bd1 100644 --- a/_layout/footer.html +++ b/_layout/footer.html @@ -4,7 +4,7 @@ terms
{{isnotpage /tag/*}}Last modified: {{author_date}}; View - page + page source
{{end}} Part of Fediring; Visit diff --git a/_layout/hair.html b/_layout/hair.html index dc79374..ffebb85 100644 --- a/_layout/hair.html +++ b/_layout/hair.html @@ -2,8 +2,6 @@ -{{isnotempty rss}}{{end}} - diff --git a/_layout/head.html b/_layout/head.html index d6b043e..70779f7 100644 --- a/_layout/head.html +++ b/_layout/head.html @@ -1,4 +1,10 @@ {{insert hair.html}} +{{isnotempty rss}}{{end}} +{{isdef title}}{{end}} + + + + {{if hasmath}}{{end}} {{isdef title}}{{title}} - McSinyx{{end}} diff --git a/_libs/fead/sources b/_libs/fead/sources index 1215258..0e24388 100644 --- a/_libs/fead/sources +++ b/_libs/fead/sources @@ -6,7 +6,6 @@ https://blog.ganssle.io/feeds/all.atom.xml https://changelog.complete.org/feed https://codesections.com/rss.xml https://danct12.github.io/feed.xml -https://dataswamp.org/~solene/rss.xml https://drewdevault.com/blog/index.xml https://harihareswara.net/atom https://jvns.ca/atom.xml diff --git a/blog/gifrip.md b/blog/gifrip.md index d21d3eb..dfb9353 100644 --- a/blog/gifrip.md +++ b/blog/gifrip.md @@ -42,13 +42,13 @@ whatever information they're meant to communicate. Don't replace the audio with a subtitle just so it can be an animated image. Don't loop anything longer than a few seconds. -There is an old saying: if tis doing fine being a video, let it be a video! +There is an old saying: *if tis doing fine being a video, let it be a video*. Videos don't need each frame to be perfect, and thus all the following steps can be done in a single ffmpeg command. Work smart, even just for shitposting. ## Extract Frames -Open the source video in [mpv], seek then spam `.s` repeatedly. +Open the source video in [mpv], seek then spam `s.` repeatedly. That's all, y waste time write lot word wen few word do trick? Aight, maybe there's a bit more to it. Operating on the level of frames @@ -69,7 +69,7 @@ In addition, videos from social media (and space-efficient movies) are heavily compressed and look pretty bad for their resolution. Usually I have to shrink them down to two third or a half of their original width for them to look decently sharp. When you have the geometry in mind, -fire up [ImageMagick]: +summon the [image wizard][ImageMagick]: ```sh crop="-crop ${w}x${h}+${dx}+${dy}" -- cgit 1.4.1