0.1.1 • Published 9 years ago
adapt-image-resize v0.1.1
adapt-image-resize
npm cli to resize images in a directory to the standard Adapt framework sizes
Installation
Install ImageMagick on your machine. Make sure it has been added to your system PATH as we will be using mogrify to do the hard work.
npm install adapt-image-resize -gUsage
cd into the directory you want to resize all images in, and run either:
adapt-image-resizeThis will copy all images to new sub-directories, and resize to basic Adapt widths (heights will stay in proportion)
- menu: 420
- narrow: 600
- wide: 900
adapt-image-resize --cropThis will copy all images to new sub-directories, resize, centre, and crop to the standard Adapt sizes
- accordion_full_width: 860x180
- full_width: 900x400
- gmcq_option: 700x700
- menu_thumb: 420x180
- single_width: 700x600
- single_width_small: 700x408