ohhdemgirls / imgurproxy

Perl Imgur.com Caching Proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perl Imgur.com Caching Proxy

Setup & Use...

Stick index.cgi in a directory with +ExecCGI
Make a directory to save the cached images to and set it in the my $cachedir variable.

To view and cache an image, browse to https://{your.host}/cgidirectory/index.cgi?{id}.{ext}

Example: https://i.imgur.com/aaa8x.gif --> https://your.host/cgi-bin/index.cgi?aaa8x.gif

Todo...

  • Set ignore on placeholder image for removed images and return error rather than caching it.
    Example: aaaa2.jpg --> removed.png and md5sum is d835884373f4d6c8f24742ceabe74946

  • Add nesting to cache directory structure.

  • Add check cache for existing media and serve original or get suited format (jpg, png, gif, gifv, mp4) Exmaple aaa8x.jpg --> aaa8x.gif or aaa8x.mp4

About

Perl Imgur.com Caching Proxy


Languages

Language:Perl 100.0%