![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Hello, I have some problems with the way to put clipped images in ConTeXt documents; for what I can see the correct way to do it is via something like: \clip [width=6.3cm,height=10.5cm,hoffset=0.5cm,voffset=1cm] {\externalfigure[ciccione_03.pdf]} Now suppose that I wanted to put the above thing zoomed 200%; and here I have two problems: (a) I can't seem to find the proper number to pass on to scale= or factor= in the \externalfigure options (b) AFAICS I need to scale all the clipping parameters as well. Point (b) is particularly annoying; is there a way to "pre-clip" an image, without touching the original file? It should be possible to specify clipping area at inclusion time (LaTeX's graphicx package can do that ...), and therefore in a scale-independent way (this is especially important when the scale factor is something like "max" or "fit" or "broad"). -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/6af1f724a401c9f6f746a973f33ff595.jpg?s=120&d=mm&r=g)
Giuseppe Bilotta
\clip [width=6.3cm,height=10.5cm,hoffset=0.5cm,voffset=1cm] {\externalfigure[ciccione_03.pdf]}
Now suppose that I wanted to put the above thing zoomed 200%; and here I have two problems:
So you want to clip first and scale the result to 200%? Or do you wish to clip the enlarged figure? \scale[sx=2,sy=2]{% \clip [width=3cm, height=5cm, hoffset=0cm, voffset=0cm]{\externalfigure[cow]}}
graphicx package can do that ...), and therefore in a scale-independent way (this is especially important when the scale factor is something like "max" or "fit" or "broad").
this can't be done with the above. Pat
![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Monday, April 7, 2003 Patrick Gundlach wrote: PG> So you want to clip first and scale the result to 200%? Or do you PG> wish to clip the enlarged figure? The former. PG> \scale[sx=2,sy=2]{% PG> \clip [width=3cm, PG> height=5cm, PG> hoffset=0cm, PG> voffset=0cm]{\externalfigure[cow]}} Oh, thanks. -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 18:09 01/04/2003 +0200, you wrote:
Hello,
I have some problems with the way to put clipped images in ConTeXt documents; for what I can see the correct way to do it is via something like:
\clip [width=6.3cm,height=10.5cm,hoffset=0.5cm,voffset=1cm] {\externalfigure[ciccione_03.pdf]}
Now suppose that I wanted to put the above thing zoomed 200%; and here I have two problems:
(a) I can't seem to find the proper number to pass on to scale= or factor= in the \externalfigure options
(b) AFAICS I need to scale all the clipping parameters as well.
in addition to other answers: you can always surround it with \scale[..] ... Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (3)
-
Giuseppe Bilotta
-
Hans Hagen
-
Patrick Gundlach