ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Applying effects to figures
       [not found] <mailman.969.1243276544.3589.ntg-context@ntg.nl>
@ 2009-05-25 19:05 ` Vyatcheslav Yatskovsky
  2009-05-25 19:38   ` Peter Rolf
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-05-25 19:05 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Applying effects to figures
  2009-05-25 19:05 ` Applying effects to figures Vyatcheslav Yatskovsky
@ 2009-05-25 19:38   ` Peter Rolf
  2009-05-25 19:42   ` Henning Hraban Ramm
  2009-05-25 21:11   ` Wolfgang Schuster
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2009-05-25 19:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> ___________________________________________________________________________________
> 
> 

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Applying effects to figures
  2009-05-25 19:05 ` Applying effects to figures Vyatcheslav Yatskovsky
  2009-05-25 19:38   ` Peter Rolf
@ 2009-05-25 19:42   ` Henning Hraban Ramm
  2009-05-25 20:47     ` Peter Münster
  2009-05-25 21:11   ` Wolfgang Schuster
  2 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2009-05-25 19:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Applying effects to figures
  2009-05-25 19:42   ` Henning Hraban Ramm
@ 2009-05-25 20:47     ` Peter Münster
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Münster @ 2009-05-25 20:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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/

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Applying effects to figures
  2009-05-25 19:05 ` Applying effects to figures Vyatcheslav Yatskovsky
  2009-05-25 19:38   ` Peter Rolf
  2009-05-25 19:42   ` Henning Hraban Ramm
@ 2009-05-25 21:11   ` Wolfgang Schuster
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2009-05-25 21:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-25 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.969.1243276544.3589.ntg-context@ntg.nl>
2009-05-25 19:05 ` Applying effects to figures Vyatcheslav Yatskovsky
2009-05-25 19:38   ` Peter Rolf
2009-05-25 19:42   ` Henning Hraban Ramm
2009-05-25 20:47     ` Peter Münster
2009-05-25 21:11   ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).