Tag Info

New answers tagged


You can analyse the size of the picture using ImageMagick's identify and then rotate it using ImageMagick's convert commandline tool. pic=file.jpg height=$(identify ${pic} | sed 's/.*x\([0-9]\+\)\+.*/\1/g') if [[ $height -gt 7000 ]]; then convert ${pic} -rotate 90 ${pic}_rotated fi The second line extract the height from the output of indentify. The ...

Top 50 recent answers are included