Skip to content

Resizes an image and squares it up by padding and adding border for Instagram.

Notifications You must be signed in to change notification settings

vladshut/instaborder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Instaborder

Description: Resizes an image and squares it up by padding and adding border for Instagram.

Usage: instaborder.sh [-h] [-q] [-v] [-f] [-r] [-s ] [-bs ] [-c ] [-l <log_dir>] [-t <tmp_dir>] [-o ]

Requires: imagemagick

Flags, options and parameters:

-h|--help        : [flag] show usage [default: off]
-q|--quiet       : [flag] no output [default: off]
-v|--verbose     : [flag] output more [default: off]
-f|--force       : [flag] do not ask for confirmation (always yes) [default: off]
-r|--remove      : [flag] remove original [default: off]
-s|--size <?>    : [option] size of the output image (default is the smae as original)
-bs|--bordersize <?>: [option] size of the border  [default: 0 ]
-c|--color <?>   : [option] color for the border   [default: white]
-l|--log_dir <?> : [option] folder for log files   [default: /home/vs/log/instaborder]
-t|--tmp_dir <?> : [option] folder for temp files  [default: /tmp/instaborder]
-o|--output <?>  : [option] out file template (:ofolder: - original file folder, :oname: - original file name, :oext: - original file extension)  [default: :ofolder:/:oname:_squared.:oext:]
<input>          : [parameter] input files (example: test/*.jpg)

Example

Command ./instaborder.sh -bs 100 -c lightgray 1.jpg


IN 1


OUT 1_squared

About

Resizes an image and squares it up by padding and adding border for Instagram.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages