Skip to content

ohhdemgirls/imgurproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%