Hello,
in release 6.4.9-1, 6.4.9-2 and 6.4.9-3 (maybe in some earlier releases too),
the following command does not center the image anymore:
display -backdrop -window root image.jpg
What I want is the image diplayed centered on the background.
It definitly works with release 6.4.7-10
Regards
Stefan
-backdrop does not center any more
Re: -backdrop does not center any more
What happens if you add -gravity center to your command line?
Re: -backdrop does not center any more
It doesn't know the "-gravity" option:magick wrote:What happens if you add -gravity center to your command line?
display -backdrop -window root -gravity center image.jpg
display: unrecognized option `-gravity' @ display.c/DisplayImageCommand/1151.
Re: -backdrop does not center any more
I'm also having this problem. I've tried versions 6.4.9-7, 6.5.0-0, and 6.5.0-1.
Backdropped images are oriented to the top left corner of the root window contrary to the information in the documentation.
This is a screenshot of my dekstop after running: display -window root -backdrop image.jpg
![Image](http://bayimg.com/image/naoabaabg.jpg)
All three said versions give same results.
Backdropped images are oriented to the top left corner of the root window contrary to the information in the documentation.
This is a screenshot of my dekstop after running: display -window root -backdrop image.jpg
![Image](http://bayimg.com/image/naoabaabg.jpg)
All three said versions give same results.
Re: -backdrop does not center any more
We'll add support for the -gravity option for the display program in the next ImageMagick point release.
Re: -backdrop does not center any more
Thanks. Until then I've been using a simple wrapper script.magick wrote:We'll add support for the -gravity option for the display program in the next ImageMagick point release.
Code: Select all
#!/bin/sh
[ -e $1 ] || exit
TEMP=${HOME}/bin/.bgsetter$$.temp.png
REZ="1680x1050"
PIC=$1
convert ${PIC} -resize "${REZ}>" -size ${REZ} xc:black +swap -gravity center -composite ${TEMP}
display -window root -backdrop ${TEMP}
rm ${TEMP}
Re: -backdrop does not center any more
Hm, with ImageMagick-6.5.0-5 the -gravity option is implemented, but doesn't do anythingmagick wrote:We'll add support for the -gravity option for the display program in the next ImageMagick point release.
![Sad :-(](./images/smilies/icon_sad.gif)
Stefan