mirror of
https://github.com/the-second-city/faceclaimer.git
synced 2025-10-29 03:56:02 -07:00
Rename to faceclaimer
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
images
|
||||
image-processor
|
||||
faceclaimer
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# image-processor
|
||||
# faceclaimer
|
||||
|
||||
A lightweight web API for processing and managing character profile images from Discord. Images are converted to WebP prior to saving.
|
||||
|
||||
@ -11,7 +11,7 @@ go build .
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
./image-processor --base-url <url> [options]
|
||||
./faceclaimer --base-url <url> [options]
|
||||
```
|
||||
|
||||
### Command-Line Options
|
||||
@ -26,7 +26,7 @@ go build .
|
||||
### Example
|
||||
|
||||
```bash
|
||||
./image-processor --base-url https://images.example.com --port 8080 --quality 85
|
||||
./faceclaimer --base-url https://images.example.com --port 8080 --quality 85
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"image-processor/checks"
|
||||
"image-processor/routes"
|
||||
"faceclaimer/checks"
|
||||
"faceclaimer/routes"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -25,7 +25,7 @@ var (
|
||||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "image-processor",
|
||||
Use: "faceclaimer",
|
||||
Short: "API for managing character profile images.",
|
||||
Long: `A web API for uploading and deleting character images uploaded to Discord.
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/gen2brain/webp"
|
||||
|
||||
"image-processor/checks"
|
||||
"faceclaimer/checks"
|
||||
)
|
||||
|
||||
// imageFromBytes converts the bytes data to an Image.
|
||||
|
||||
6
main.go
6
main.go
@ -1,10 +1,6 @@
|
||||
/*
|
||||
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
|
||||
|
||||
*/
|
||||
package main
|
||||
|
||||
import "image-processor/cmd"
|
||||
import "faceclaimer/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
|
||||
@ -13,8 +13,8 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
"image-processor/checks"
|
||||
"image-processor/convert"
|
||||
"faceclaimer/checks"
|
||||
"faceclaimer/convert"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"image-processor/checks"
|
||||
"faceclaimer/checks"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user