magicx

package module
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 10 Imported by: 0

README

magicx

rename
$ ./bin/magicx rename --help

Usage:
  magicx [OPTIONS] rename [rename-OPTIONS]

The rename command-line fix the numbering file.

Help Options:
  -h, --help      Show this help message

[rename command options]
      -p, --path= Full path (default: /Users/JP17278/Downloads/00022_sansyoku)
      -n, --num=  Suffix number (default: 3)
./bin/magicx rename --path=xxx
resize
$ ./bin/magicx resize --help

Usage:
  magicx [OPTIONS] resize [resize-OPTIONS]

The resize command-line

Help Options:
  -h, --help         Show this help message

[resize command options]
      -p, --path=    Full path (default: /Users/JP17278/Downloads/00022_sansyoku)
      -w, --width=   Limit width (default: 2266)
      -s, --size=    Limit size (kb) (default: 30720)
          --percent= Resize percentages (default: 95.0)

How to build for windows

brew reinstall mingw-w64
CGO_ENABLED=1 GODEBUG=cgocheck=0 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build -v -o bin/magicx_v1.1.0.exe ./cmd/gui/main.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LimitedSizeInfoByContentType = map[string]LimitedSizeInfo{
	"comic": {
		Image:     ImageSize{Width: 1600, Size: 10485760},
		Thumbnail: ThumbnailSize{Width: 500, Size: 51200},
		Folder:    62914560,
	},
	"magazine_comic": {
		Image:     ImageSize{Width: 2266, Size: 31457280},
		Thumbnail: ThumbnailSize{Width: 500, Size: 51200},
		Folder:    62914560,
	},
}

Functions

func ConsoleLog

func ConsoleLog(folders, images, thumbs, mismatch, notFoundThumbs, noNumberings map[string]struct{}) string

func EpisodeName

func EpisodeName(n int, lang Language) string

func Load

func Load(dir string) <-chan []FolderInfo

func Println

func Println(title string, data map[string]struct{})

func Reanme

func Reanme(in <-chan []FolderInfo) <-chan []FolderInfo

Types

type FileInfo

type FileInfo struct {
	Path        string
	Folder      string
	Name        string
	Ext         string
	Size        int64
	Width       int
	Height      int
	Format      string
	IsStandard  bool
	IsThumbnail bool
	IsMissmatch bool
}

func (FileInfo) FullName

func (f FileInfo) FullName() string

type FolderInfo

type FolderInfo struct {
	Name  string
	Size  int64
	Files []FileInfo
}

type ImageSize

type ImageSize struct {
	Width int
	Size  int64
}

type Language

type Language int8
const (
	EN Language = iota
	JP
)

type LimitedSizeInfo

type LimitedSizeInfo struct {
	Folder    int64
	Image     ImageSize
	Thumbnail ThumbnailSize
}

type ThumbnailSize

type ThumbnailSize struct {
	Width int
	Size  int64
}

Directories

Path Synopsis
cmd
cli
gui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳