convert output changes with recent update
Posted: 2019-05-31T12:47:09-07:00
A recent ImageMagick update (to version 7.0.8-47) on my system has resulted in production of errant results from a script I've been running for a few months now. The script overlays onto an image some text that I download from the internet at regular intervals, adding a blurred shadow effect to the text and positioning it on an image. For reference, the script is as follows:
Whereas previous to the upgrade this would add a gently blurring greyish shadow around text placed in the appropriate position on the image, now, though the text winds up in the right place on the image being overlayed, it is surround by a very dark, blocky shadow. Plus the shadow is clearly being trimmed. I'm trying to discover what sort of corrective I might apply to restore the lighter, gently blurring shadow I was able previously to achieve.
I do not understand especially well the technical workings of IM, rather having arrived at the incantation above mainly by looking over examples in the documentation and performing experiments based on those. So there may well be problems with what I previously put together that, only with the recent update, have begun to surface. Or perhaps some bug was introduced in this newer version of the software? Be that as it may, suggestions for accomplishing the intended aim will be appreciated.
PS Btw I get similar results (a dark blocky shadow surrounding the text) on this system when I try to run the sample command
(taken from http://www.imagemagick.org/Usage/blur/#shadow)
Code: Select all
convert -size 240x180 xc:none -gravity center -stroke black -strokewidth 2 -pointsize 36 -annotate 0 \
"$(cat /home/user/weather/currnt-cond.txt)" -background none -shadow 100x3+0+0 +repage -stroke none \
-fill lightblue -annotate 0 "$(cat /home/user/weather/currnt-cond.txt)" /home/user/weather/wmap-hi_res.gif \
+swap -gravity northeast -geometry +0-3 -composite /home/user/weather/wmap-hi_res-NE.gif
I do not understand especially well the technical workings of IM, rather having arrived at the incantation above mainly by looking over examples in the documentation and performing experiments based on those. So there may well be problems with what I previously put together that, only with the recent update, have begun to surface. Or perhaps some bug was introduced in this newer version of the software? Be that as it may, suggestions for accomplishing the intended aim will be appreciated.
PS Btw I get similar results (a dark blocky shadow surrounding the text) on this system when I try to run the sample command
Code: Select all
convert -background none -stroke black -fill white \
-font Candice -pointsize 48 label:A -trim \
\( +clone -background navy -shadow 80x3+3+3 \) +swap \
-background none -layers merge +repage shadow_a.png