this post was submitted on 15 Dec 2024
114 points (96.0% liked)

Selfhosted

40708 readers
558 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (donโ€™t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

This might sound silly but I really do miss sending gifs. I think it gives lighthearted fun. However I do not want to use giphy or tenor api I would rather have a bunch of gifs self hosted and accessible on my home server.

Matrix has their sticker solution but from what I have gathered they can see that data in your chats. You can get a gif plugin but I am sure matrix and giphy can see your requests with it as well.

My solution as of right now is trying to host immich and having a gif album that is accessible by my users. Reason being is the ai may prove to be useful when searching for the perfect gif/reaction. I have ran into a problem though, I have no idea how to batch download gifs from giphy and tenor. It seems people don't just share their gif collections all willy nilly like they do memes.

Is this the best solution? How would you go about self hosting such a service?

(And if you have large amounts of gifs... Can I have some ๐Ÿ‘‰๐Ÿ‘ˆ ๐Ÿฅบ)

Sorry for the silly request for help ๐Ÿ˜‚

Thank you all so much.

top 30 comments
sorted by: hot top controversial new old
[โ€“] thagoat@lemmy.sdf.org 4 points 6 days ago (1 children)

So I just saw this on hacker news https://Hostingyourgif.live Might be of interest

[โ€“] mouse@midwest.social 6 points 6 days ago (1 children)

Oops, looks like that's the wrong URL. I found it on Hacker News, here's the post https://news.ycombinator.com/item?id=42431065 https://hostyourgif.live/

[โ€“] thagoat@lemmy.sdf.org 5 points 6 days ago

Lol yeah, that's it. Damn autocorrect

[โ€“] ellypony@lemmy.world 4 points 6 days ago

This might not be exactly what you're looking for, but there is a self-hostable image booru available on the flatpak repository called Hydrus. Itโ€™s essentially just a front end for a database you can run locally on your computer and organize images/videos by category. Add tags etc.

[โ€“] kata1yst@sh.itjust.works 39 points 1 week ago (1 children)
[โ€“] kitnaht@lemmy.world 29 points 1 week ago (2 children)

Can't wait until this guy DDoS's his home connection and his ISP calls wondering why tf his bandwidth skyrocketed overnight because of hotlinkers.

[โ€“] Greg@lemmy.ca 8 points 1 week ago (1 children)

OP can use a Cloudflare tunnel which would take care of caching and prevent any accidental DDoS attacks.

[โ€“] ludicolo@lemmy.ml -1 points 1 week ago (1 children)
[โ€“] AtariDump@lemmy.world 2 points 1 week ago (1 children)
[โ€“] ludicolo@lemmy.ml 3 points 1 week ago

Its a joke, in that clip he says "two steps ahead, I am always two steps ahead" it was viral for a while.

[โ€“] graham1@lemmy.world 7 points 1 week ago
[โ€“] fmstrat@lemmy.nowsci.com 5 points 1 week ago* (last edited 1 week ago) (1 children)

Matrix has their sticker solution but from what I have gathered they can see that data in your chats.

What gives you that idea?

As for options, I searched giphy scraper and got a bunch of options on GitHub. Have you looked at those?

[โ€“] ludicolo@lemmy.ml 1 points 1 week ago* (last edited 1 week ago) (1 children)

I had read somewhere that matrix can see integration data like sticker packs. So while they cannot read the content of your encrypted messages they can see what stickers you are sending and reacting with.

I did not look extensively into a giphy scraper. I used different terminology that probably confused the search engine ๐Ÿคฆ couldn't think of the word. Thank you I will look into it.

iirc it's the reason Signal didn't have gifs was the data leakage from them

[โ€“] this@sh.itjust.works 5 points 1 week ago (1 children)

Couldn't you use immich for this?

[โ€“] ludicolo@lemmy.ml 2 points 1 week ago

Thats the route I was potentially looking at.

[โ€“] supersquirrel@sopuli.xyz 5 points 1 week ago* (last edited 1 week ago)

...ok I know I always recommend dokuwiki for everything but it is super easy to set up and doesn't need a database or anything and it comes stock with a nice gui media manager and a lot of plugins that extend that functionality.

If you are willing to provide or pay for the hosting of a large amount of images I don't see the reason to go with anything more complicated though you may find something more minimal that suits your needs.

https://www.dokuwiki.org/dokuwiki

https://www.dokuwiki.org/tips:cms

I don't know if there is a way to handle metadata for non-jpg images but there are a number of ways you could organize gifs including photo namespaces.

https://www.dokuwiki.org/media_manager

or using the imagebox plugin and just directly put tags in the caption

https://www.dokuwiki.org/plugin:imagebox

or a number of other ways probably.

The nice thing about this solution is all the data is accessible and in plain text readable markdown which also makes it easy to strap other things onto, search through with whatever tools you want and easily run a backup process on (especially since everything is neatly contained within a folder).

Don't make the mistake most people of thinking dokuwiki is only useful as a traditional wiki, it is such a simple and general tool that its power extends far past that.

[โ€“] eskuero@lemmy.fromshado.ws 4 points 1 week ago* (last edited 1 week ago)

I dont think there's anything that seamless integrate on keyboards or social/chat apps but you could try to selfhost a booru app and then share the hotlinks to those gifs.

They are mostly known for anime and weeb stuff but for memes and gifs I think the tagging system would work the best so you can quickly search what you want.

[โ€“] hedgehog@ttrpg.network 3 points 1 week ago

Giphy has a documented API that you could use. There have been bulk downloaders, but I didnโ€™t see any that had recent activity. However you still might be able to use one to model your own script after, like https://github.com/jcpsimmons/giphy-stacks

There were downloaders for Gfycat - gallery-dl supported it at one point - but itโ€™s down now. However you might be able to find collections that other people downloaded and are now hosting. You could also use the Internet Archive - they have tools and APIs documented

Thereโ€™s a Tenor mass downloader that uses the Tenor API and an API key that you provide.

Imgur has GIFs is supported by gallery-dl, so thatโ€™s an option.

Also, read over https://github.com/simon987/awesome-datahoarding - there may be something useful for you there.

In terms of hosting, it would depend on my user base and if I want users to be able to upload GIFs, too. If it was just my close friends, then Immich would probably be fine, but if we had people I didnโ€™t know directly using it, Iโ€™d want a more refined solution.

Thereโ€™s Gifable, which is pretty focused, but looks like it has a pretty small following. I havenโ€™t used it myself to see how suitable it is. If you self-host it (or something else that uses S3), note that you can use MinIO or LocalStack for the S3 container rather than using AWS directly. Iโ€™m using MinIO as part of my stack now, though for a completely different app.

MediaCMS is another option. Less focused on GIFs but more actively developed, and intended to be used for this sort of purpose.

Buy a VPS, set up Nextcloud and try it that way.

[โ€“] HotChickenFeet@sopuli.xyz 1 points 1 week ago (2 children)

I would say an image archiver like Hydrus might be suitable for an individual, but I don't think it would have anything for your multiuser use-case.

I am curious if any popular keyboards accept custom gify/etc replacement URLs. It'd be pretty slick to set up Heliboard or Futo keyboard with an integrated self-hosted gify

[โ€“] oldfart@lemm.ee 1 points 6 days ago* (last edited 6 days ago) (1 children)

There's Ewe Sticker Keyboard that I use with gif files on Android. Particularly with sticker packs I ripped from Telegram.

[โ€“] HotChickenFeet@sopuli.xyz 1 points 6 days ago (1 children)

Thanks! I'll have to check it out myself.

It doesn't help if folks are iOS, but perhaps ludicolo@lemmy.ml could set up a file sync server (e.g. nextcloud, etc) that syncs the files to their phones, and then an app like this could be used to pick images?

Or maybe there's a way to set it up to read from a WebDAV mount point either in application or through Android?

[โ€“] oldfart@lemm.ee 1 points 6 days ago* (last edited 6 days ago) (1 children)

Huh, i just use it with a local directory but I jist checked and could easily select a share from rcx app, so whatever you use for webdav access will also work.

Ps. If you dont use Nextcloud yet, don't, it's so slow I can't imagine how many hours it will take to load a sticker pack, several seconds per file

[โ€“] HotChickenFeet@sopuli.xyz 1 points 5 days ago (1 children)

Anything you'd recommend over nextcloud for filesharing? I've had it setup so I've left it.

I just suggested something like it because OP wanted to they and their friends to be able to use the images.

[โ€“] oldfart@lemm.ee 1 points 3 days ago

I use syncthing now but it's a different use case. Nginx set up as a webdav server will work just fine, or any s/ftp app with a shared account.

[โ€“] ludicolo@lemmy.ml 2 points 1 week ago

I would love to see what futo would come uo with in this department

[โ€“] supersquirrel@sopuli.xyz 1 points 1 week ago* (last edited 1 week ago)

(I made a seperate post because for alternate idea)

Have you considered hosting a lemmy instance yourself and possibly preconstructing lemmy threads in some bulk fashion with gifs grouped by topic or theme and just use lemmy itself as the platform to share gifs?

Just because lemmy threads were created to mimic reddit threads doesn't mean we are confined to only using lemmy as a reddit-like tool...

Just an interesting thought I had shrugs