joining images of different dimensions with automatic resizing according to smallest
Posted: 2019-10-09T08:57:47-07:00
I am using
$ display --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
on 64bit ubuntu OS
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Currently, I have two images of resolution 200x300 ('A') and 100x70 ('B') .
I am stacking them vertically using append operator.
But there is white space at the bottom of B in result.
It would be nice if we can specify A to resize to somethingx70 resolution maintaining the aspect ratio and then join with B.
Can this be done in a single command ?
Moreover, if we do not have information about image sizes then is there any operator that joins images vertically after resizing all images in a group to one with lowest y dimension ?
Thanks.
$ display --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
on 64bit ubuntu OS
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Currently, I have two images of resolution 200x300 ('A') and 100x70 ('B') .
I am stacking them vertically using append operator.
But there is white space at the bottom of B in result.
It would be nice if we can specify A to resize to somethingx70 resolution maintaining the aspect ratio and then join with B.
Can this be done in a single command ?
Moreover, if we do not have information about image sizes then is there any operator that joins images vertically after resizing all images in a group to one with lowest y dimension ?
Thanks.