Search found 2 matches

by ohuebler
2016-03-27T02:05:03-07:00
Forum: Users
Topic: Get information and rotate and resize with it
Replies: 2
Views: 1179

Re: Get information and rotate and resize with it

Thank you so much. That did the trick:

Code: Select all

for file in *.jpg; 
do 
read f width height < <(identify -format "%f %w %h" "$file")
convert $f -rotate 270 -resize ${width}x${height}! temp-$f;
done
by ohuebler
2016-03-26T22:49:15-07:00
Forum: Users
Topic: Get information and rotate and resize with it
Replies: 2
Views: 1179

Get information and rotate and resize with it

Hello, A couple of photos on my disk were somehow destroyed in aspect ratio. It seems that the image turned in the same aspect ratio. I now want to fix it with the following script (bash MAC). for file in *.jpg; do read f width height < <(identify -format "%f %w %h" "$file") convert $f -rotate 270 ...