Skip to content

Cod3dDOT/rich-thumbnail-uploader

Repository files navigation

Rich Thumbnail Uploader

Rich Thumbnail Uploader

Thumbnail uploader for foo_discord_rich - a plugin for Discord Rich Presence in foobar2000.

Uploads a thumbnail of album artwork to image hosting services and returns a link.

Inspired by rust-imgur-upload.

Supported Services

Service JPEG PNG WEBP
Imgur [x] [x] [ ]
Catbox [x] [x] [x]

Quick Setup

Clone and build:

git clone https://github.com/your-username/rich-thumbnail-uploader
cd rich-thumbnail-uploader
cargo build --release

Project Structure

├── LICENCES/               # REUSE licenses (See README)
├── resources/              # Windows metadata
├── src/
│   ├── models/             # Models for api responses
│   │   ├── imgur.rs
│   │   └── mod.rs
│   ├── uploaders/          # Upload logic per service
│   │   ├── imgur.rs
│   │   ├── catbox.rs
│   │   └── mod.rs
│   ├── config/             # CLI helpers
│   │   ├── cli.rs
│   │   ├── help.rs
│   │   └── mod.rs
│   ├── errors.rs           # Contains error types
│   ├── image_processor.rs  # Generates thumbnails
│   └── main.rs             # Entry point
├── Cargo.toml              # Crate metadata and dependencies
├── build.rs                # Build logic (windows metadata)
├── CHANGES.md              # Changelog
├── COPYING                 # AGPL-3.0-or-later (See README)
└── README.md               # This file

Usage

  1. Save executable on disk
  2. File -> Preferences -> Discord Rich Presence Integration -> Advanced
  3. Set upload command as the path to the executable, with any options you would like

Example: C:\Users\user\rich-thumbnail-uploader.exe -s catbox -f webp

Options

Rich Thumbnail Uploader - Upload thumbnails for Discord Rich Presence

USAGE:
    rich-thumbnail-uploader [OPTIONS]

OPTIONS:
    -d, --dimensions <DIMS>    Dimensions to resize image to (128-512) [default: 256]
    -s, --service <SERVICE>    Image hosting service [default: catbox]
                               [possible values: imgur, catbox]
    -f, --format <FORMAT>      Output image format [default: png]
                               [possible values: png, webp]
        --uid <UID>           User ID for service authentication
    -h, --help                Print help information
    -V, --version             Print version information

License

This project strives to be REUSE compliant.

Generally:

  • Documentation is licensed under CC-BY-NC-SA-4.0
  • Code is licensed under AGPL-3.0-or-later
  • Config files are under CC0-1.0
    rich-thumbnail-uploader: thumbnail uploader for foo_discord_rich
    Copyright (C) 2025  [email protected]

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

About

Thumbnail uploader for the foo_discord_rich plugin.

Topics

Resources

License

Stars

Watchers

Forks

Languages