Compress image height in proportion

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Zuldek
Posts: 12
Joined: Fri Jul 05, 2019 1:24 pm

Compress image height in proportion

Post by Zuldek »

Please tell me how to compress the image in height, while maintaining the proportions of the width
cday
XnThusiast
Posts: 4300
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Compress image height in proportion

Post by cday »

Zuldek wrote: Fri Jul 05, 2019 1:29 pm Please tell me how to compress the image in height, while maintaining the proportions of the width

Code: Select all

-resize w h      : Scale width-height
              w h can be percent (ex: -resize 100% 200%)
          -resize fill w h    : Scale by filling the box wxh
          -resize longest size    : Scale longest side
          -resize shortest size   : Scale shortest side
You have created a copy of the help file?