以前,在ImageMagick 6中,我使用以下命令行向GEOTIF添加白色背景。
convert /path/to/my/geotif.tif -background white -alpha background -define registry:temporary-path=/path/to/my/temp_file/ -alpha off TIFF64:/path/to/my/new_geotif.tif
现在,由于最近将ImageMagick升级到版本7,我尝试更改命令行。 但这不再起作用。
这是我的新命令行
magick /path/to/my/geotif.tif -background white -alpha background -define registry:temporary-path=/path/to/my/temp_file/ -alpha off TIFF64:/path/to/my/new_geotif.tif
有人知道会发生什么吗?还是我做错了什么?
PS:我也尝试过
magick convert /path/to/my/geotif.tif -background white -alpha background -define registry:temporary-path=/path/to/my/temp_file/ -alpha off TIFF64:/path/to/my/new_geotif.tif
非常感谢