Resizing to Fill a Given Space
Posted: 2007-09-20T08:59:27-07:00
Hi!
Hope someone can help me with that...
I would like to resize a pic to fill a given space with a certain background image. Its working fine with a color, but how can I do this with a background image (gif)?
With color it works fine:
convert myimage.gif -resize 300x300 -size 300x300 xc:#fff +swap -gravity center -composite mynewimage.gif
but if you would like to have a background image... can someone help me with that please?
Hope someone can help me with that...
I would like to resize a pic to fill a given space with a certain background image. Its working fine with a color, but how can I do this with a background image (gif)?
With color it works fine:
convert myimage.gif -resize 300x300 -size 300x300 xc:#fff +swap -gravity center -composite mynewimage.gif
but if you would like to have a background image... can someone help me with that please?