The issue however is that when the modified tiles are put back together into the original image. ImageMagick seems to crop the new output made of the modified tiles. All the tiles appear to be perfectly positioned, and thus I can't figure out why ImageMagick crops the final output, let alone how I can stop it.
This is the original image before it's chopped into 3x3 overlapping tiles:
https://i.imgur.com/TPWygd0.jpg
This is the final output composed of the modified tiles:
https://i.imgur.com/8ENBJsw.jpg
How can I prevent ImageMagick from cropping this output? Is it possible to disable cropping?
The code used to put the modified tiles back together, is shown below:
Code: Select all
# 6. merge feathered tiles
montage $feathered_dir/$clean_name'_0.png' $feathered_dir/$clean_name'_1.png' \
$feathered_dir/$clean_name'_2.png' $feathered_dir/$clean_name'_3.png' \
$feathered_dir/$clean_name'_4.png' $feathered_dir/$clean_name'_5.png' \
$feathered_dir/$clean_name'_6.png' $feathered_dir/$clean_name'_7.png' \
$feathered_dir/$clean_name'_8.png' -tile 3x3 -geometry -$border_w-$border_h $output/$clean_name.large_feathered.png
# 7. merge un-feathered tiles
montage $tiles_dir/$clean_name'_0.png' $tiles_dir/$clean_name'_1.png' \
$tiles_dir/$clean_name'_2.png' $tiles_dir/$clean_name'_3.png' \
$tiles_dir/$clean_name'_4.png' $tiles_dir/$clean_name'_5.png' \
$tiles_dir/$clean_name'_6.png' $tiles_dir/$clean_name'_7.png' \
$tiles_dir/$clean_name'_8.png' -tile 3x3 -geometry -$border_w-$border_h $output/$clean_name.large.png
This command reproduces the same issue:
Code: Select all
montage IMG_3926_0.png IMG_3926_1.png IMG_3926_2.png IMG_3926_3.png IMG_3926_4.png IMG_3926_5.png IMG_3926_6.png IMG_3926_7.png IMG_3926_8.png -tile 3x3 -geometry -68.8151-68.8151 out_correct_geometry.png
Stackoverflow post: https://stackoverflow.com/questions/416 ... ropping-th