I'm trying to come up with a way of resizing images in a directory by half (longways). I have already used:mogrify -resize 50% *It does resize all the image in the file but width and length ways. I have a pseudo idea for:for images in $picDir; do    width = images.width()    height images.height()    convert -resize $height*$width/2 imagesI am not sure if that is the correct way to go through a directory and I cannot find an efficent way to get the height and width of a specific file. I would like to also find a way to do this without using Imagemagick and something that is already pre instaled on a ubuntu machine. If that is possible!
Linux Bash resize image half the size (linear)
linux;images
Depending on what you mean by resizing only the length, try one ofmogrify -resize 50%x100% *mogrify -resize 100%x50% *