OrangeJuicestice
08/27/21 09:11PM
How to upload gifs from twitter?
Hey guys, quick question:

I have a couple of gifs from twitter I want to upload to the hub, but I am unable to upload them without nuking the quality. How do you guys download and upload things from twitter while retaining the quality? Sorry if this is a dumb question.
Mattlau04
08/28/21 01:07AM
OrangeJuicestice said:
Hey guys, quick question:

I have a couple of gifs from twitter I want to upload to the hub, but I am unable to upload them without nuking the quality. How do you guys download and upload things from twitter while retaining the quality? Sorry if this is a dumb question.


Short answer: you can't, you're bound to lose some quality.

Long answer: It really depends on the gif.
What i tend to do is download the gif (which in reality is just a MP4 bc it's more efficient) with gallery-dl.
Then comes the painful part. If the mp4 is short and not too high-res, you can just use FFMPEG to convert it without loss into a gif, the thing is, gifs are REALLY bad at compression (read: there is no compression), so in practice this is almost never the case.
If the outputted gif is too big (above 100mb, the hub's size limit), you have to try reduce either the resolution or the framerate. If the framerate of the mp4 is above 30, reduce it to 30, it's barely noticeable but it really helps a lot. If you drop to under 24fps, then the gif will stop looking fluid, but it's sometimes a better alternative than having a 100px tall gif.
In terms of resolution, there isn't really any tips, try to keep it as high as possible (well not higher than that of the original MP4 ofc), and if possible keeping the exact same aspect ratio

TL;DR: god please just add MP4 support to hypnohub already, GIF is the worst format possible to store animations
1


Reply | Forum Index