Skip to content
Snippets Groups Projects
Commit 530a5a9b authored by nick87720z's avatar nick87720z
Browse files

img-fft-resynth: More consistent alignment for some lines

parent 86da3426
No related branches found
No related tags found
No related merge requests found
...@@ -120,12 +120,12 @@ isize=$( identify "$ifile" | cut -f3 -d' ' ) ...@@ -120,12 +120,12 @@ isize=$( identify "$ifile" | cut -f3 -d' ' )
iw=$( printf "%s\n" "$isize" | cut -f1 -dx ) iw=$( printf "%s\n" "$isize" | cut -f1 -dx )
ih=$( printf "%s\n" "$isize" | cut -f2 -dx ) ih=$( printf "%s\n" "$isize" | cut -f2 -dx )
if [ $((ow)) -eq 0 -a $((oh)) -eq 0 ]; then if [ $(( ow )) -eq 0 -a $(( oh )) -eq 0 ]; then
ow=$iw ow=$iw
oh=$ih oh=$ih
elif [ $((ow)) -eq 0 ]; then elif [ $(( ow )) -eq 0 ]; then
ow=$(( oh * iw / ih )) ow=$(( oh * iw / ih ))
elif [ $((oh)) -eq 0 ]; then elif [ $(( oh )) -eq 0 ]; then
oh=$(( ow * ih / iw )) oh=$(( ow * ih / iw ))
fi fi
geom="${ow}x${oh}+0+0" geom="${ow}x${oh}+0+0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment