ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Set up external figure for particular image type
@ 2022-07-08 15:46 Thangalin via ntg-context
  2022-07-08 16:29 ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Thangalin via ntg-context @ 2022-07-08 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin


[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]

A document has a mix of SVG and PNG images. Changing the parameters for
`\setupexternalfigure` affects both SVG and PNG images. Consider the
following code:

    \setupexternalfigures[
      order={svg,pdf,png,jpg},
      location={local,default,global},
      directory={images},
      maxwidth=\textwidth,
      maxheight=0.4\textheight
    ]

I'd like to change the `maxheight` option for only PNG images, such as:

    \setupexternalfigure[
      method=png,
      maxwidth=\textwidth,
      maxheight=\textheight,
    ]

However, this affects SVG images as well.

How do you apply different external figure setups based on image type?

Thank you!

[-- Attachment #1.2: Type: text/html, Size: 947 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-08-01  7:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 15:46 Set up external figure for particular image type Thangalin via ntg-context
2022-07-08 16:29 ` Henning Hraban Ramm via ntg-context
2022-07-12 18:11   ` Thangalin via ntg-context
2022-07-12 19:01     ` Rik Kabel via ntg-context
2022-07-18 16:01       ` Thangalin via ntg-context
2022-07-12 19:07     ` Wolfgang Schuster via ntg-context
2022-07-18 17:10       ` Thangalin via ntg-context
2022-07-18 20:14         ` Wolfgang Schuster via ntg-context
2022-08-01  0:29           ` Thangalin via ntg-context
2022-08-01  7:07             ` Hans Hagen via ntg-context
2022-07-12 22:33     ` Albert Krewinkel via ntg-context
2022-07-18 16:03       ` Thangalin via ntg-context

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).