cropimg

command module
v0.0.0-...-8e2c2ed Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 5 Imported by: 0

README

cropimg

A simple tool for cropping images

Build

$ go build -o .\bin\cropimg.exe .\cropimg.go .\flags.go

How to use?

Example:

$ ...\cropimg.exe -s ".\**\*.png" -w 100 -h 200 -l 30 -t 40 -o "{dir}\{name}_{time}.{ext}"  

Flags:

-source|-s <string>
    image(s) source:
        "./<image>.jpg" - .jpg-image
        "./*.png" - .png-images from current directory
        "./**/**/*.gif" - .gif-images from deep(2) directories

-ignore|-i <string>
    ignored image(s) source:
        "./*_cropped.png" - ignore png-images ending with "_cropped.png"

-width|-w <int>
    width

-height|-h <int>
    height

-top|-t <int>
    top offset

-left|-l <int>
    left offset

-output|-o <string>
    output file format:
        {dir} - directory
        {name} - file name
        {ext} - file extension
        {time} - current time(24-59-59)
        {date} - current date(01.02.2003)
        {index} - file index
        {local} - local file index
    default: {dir}/{name}_cropped.{ext}

Version

0.2.4

Author

Konstantin S.G. <github.com/bluesbaker>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL