Shell script creating offset
Posted: 2017-01-03T19:53:27-07:00
Hi,
I am having a weird issue and I would be keen to either get an explanation and a fix or an alternative method.
I have 2 directories from which I wish to combine pair of images with the same index. I have done that in the past without any issues until now.
This is typically the shell script I use
When I apply this to my current images, I systematically get an offset at the top left image.
What is weird is:
1) the images have the same height.
2) If I do not use the shell, but use the only command line to combine two images, the result is great.
3) I tried numerous way of combining the images including using montage. Combining two images not going though the shell script creates a great output while processing through the script fails and produces the offset.
Could someone provide a clue ?
Thanks Catherine
I am having a weird issue and I would be keen to either get an explanation and a fix or an alternative method.
I have 2 directories from which I wish to combine pair of images with the same index. I have done that in the past without any issues until now.
This is typically the shell script I use
Code: Select all
#!bin/bash echo "$k items"
for i in $(seq -f "%05g" $1 $2 )
do
File1=${3}${i}.jpg
File2=${4}${i}.jpg
FileOut=${5}${i}.png
Command="convert +append "${File1}" "${File2}" "${FileOut}
echo $Command
eval $Command
done
What is weird is:
1) the images have the same height.
2) If I do not use the shell, but use the only command line to combine two images, the result is great.
3) I tried numerous way of combining the images including using montage. Combining two images not going though the shell script creates a great output while processing through the script fails and produces the offset.
Could someone provide a clue ?
Thanks Catherine