Hello, I just thinkig... Is there a way to apply an effect to inserted images? Say, I need to make a shadow around all of screenshots included, and it is too laborous to apply the shadow to them in an editor just in order to have screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed. Best, Vyatcheslav
Vyatcheslav Yatskovsky schrieb:
Hello,
I just thinkig... Is there a way to apply an effect to inserted images?
sure, but...
Say, I need to make a shadow around all of screenshots included, and it is too laborous to apply the shadow to them in an editor just in order to have screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed.
you should ask yourself, if there is not a simpler way to do so. see http://www.imagemagick.org/Usage/convolve/#shadow_montage best wishes, peter
Best, Vyatcheslav ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 2009-05-25 um 21:05 schrieb Vyatcheslav Yatskovsky:
I just thinkig... Is there a way to apply an effect to inserted images? Say, I need to make a shadow around all of screenshots included, and it is too laborous to apply the shadow to them in an editor just in order to have screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed.
ImageMagick does support such effects; probably you could update and enhance or at least get inspiration from the degrade module: http://modules.contextgarden.net/t-degrade Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Mon, 25 May 2009, Henning Hraban Ramm wrote:
ImageMagick does support such effects; probably you could update and enhance or at least get inspiration from the degrade module: http://modules.contextgarden.net/t-degrade
And of course, today you should use rather lua than bash scripting! To use ImageMagick, there is always os.execute(...). Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
Am 25.05.2009 um 21:05 schrieb Vyatcheslav Yatskovsky:
Hello,
I just thinkig... Is there a way to apply an effect to inserted images? Say, I need to make a shadow around all of screenshots included, and it is too laborous to apply the shadow to them in an editor just in order to have screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed.
\startuseMPgraphic{shadow} fill OverlayBox shifted (5pt,-5pt) withcolor .7white ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[shadow][\useMPgraphic{shadow}] \starttext \externalfigure[mill][background=shadow] \blank \setupexternalfigures[background=shadow] \externalfigure[hacker] \stoptext Wolfgang
participants (5)
-
Henning Hraban Ramm
-
Peter Münster
-
Peter Rolf
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster