From Holoctober day 7 (police).

I spent FOUR HOURS trying to make something that would both embed for easy viewing and play as intended (e.g., looping, has thumbnail) and failed so I guess DIRECT LINK IT IS (kill me).

  • AnonTwo@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Unfortunately I think Ugoira is very popular in Pixiv for it’s simplicity, but nobody has any desire to create a plugin for any image viewer.

    I think you’d have to intentionally add frames to any video format for the animation to properly go off.

    • MHLoppy@fedia.ioOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      I think you’d have to intentionally add frames to any video format for the animation to properly go off.

      Yeah the choice (if using a video) is to either:

      • keep the animation to just one loop which keeps the file small… but videos don’t loop by default so that kind of sucks in terms of viewing experience orr
      • duplicate the animation cycle to play a few times, which makes the final size kinda large? (also not great for viewing)

      And then there’s the whole issue of videos generally not embedding as nicely as images X_X (PLUS THE GOD DAMN FRAME TIMING)


      Just because, here’s a couple of the files I had before giving up:
      Animated WebP, one cycle (?): https://files.catbox.moe/ugssep.webp
      H.264/MP4, one cycle (?): https://files.catbox.moe/r96kdv.mp4
      VP9/WebM, one cycle (?): https://i.imgur.com/THQ371h.gifv (but Imgur of course re-compresses to MP4)

      The Imgur gifv link is the best native viewing experience I could come up with since it’ll autoloop the underlying MP4 video, but that usually still requires the viewer to actually go to the page - not many people would see it as an embed option, and that kind of defeats the purpose of not just going directly to Pixiv.

      The animated WebP was supposed to be a good option, but kbin doesn’t seem to support it as an embed, and although Lemmy does, both times I tried uploading it to Lemmy directly the thumbnail for the image got messed up (although the image itself was okay). I could use catbox to link the WebP directly (and avoid the thumbnail issue), but catbox isn’t available in some regions so it locks out some viewers if using it :(