ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Why are some images rendered very tiny?
       [not found] <1166310856.2359403.1655309476596.ref@mail.yahoo.com>
@ 2022-06-15 16:11 ` Joel via ntg-context
  2022-06-15 16:33   ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Joel via ntg-context @ 2022-06-15 16:11 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


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

I wrote this macro to display images in my book. It should place the image to the left, filling ~50% of \textwidth, then the caption is to the right.

\setupcaption[location=right, minwidth=.5\textwidth]
\define[4]\figureis{%
    \placefigure{#2, Courtesy #3, photo no. #1\nocite[#4]{}}{\externalfigure[#1][maxheight=.7\paperheight, maxwidth=.5\paperwidth, minwidth=.5\paperwidth]}
}
#1 = filename, other variables are used for reference/credit details.

The problem is, somehow some images are inexplicably displayed very tiny on the page. I check the image file and they are not small, but somehow is rendered small with the code above.

What is wrong in my code?
--Joel

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

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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Why are some images rendered very tiny?
  2022-06-15 16:11 ` Why are some images rendered very tiny? Joel via ntg-context
@ 2022-06-15 16:33   ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-06-15 16:33 UTC (permalink / raw)
  To: Joel via ntg-context; +Cc: Henning Hraban Ramm

Am 15.06.22 um 18:11 schrieb Joel via ntg-context:
> I wrote this macro to display images in my book. It should place the 
> image to the left, filling ~50% of \textwidth, then the caption is to 
> the right.
> 
> \setupcaption[location=right, minwidth=.5\textwidth]
> \define[4]\figureis{%
>      \placefigure{#2, Courtesy #3, photo no. 
> #1\nocite[#4]{}}{\externalfigure[#1][maxheight=.7\paperheight, 
> maxwidth=.5\paperwidth, minwidth=.5\paperwidth]}
> }
> 
> #1 = filename, other variables are used for reference/credit details.
> 
> The problem is, somehow some images are inexplicably displayed very tiny 
> on the page. I check the image file and they are not small, but somehow 
> is rendered small with the code above.
> 
> What is wrong in my code?

There are no parameters "minwidth" or "minheight", see 
https://wiki.contextgarden.net/Command/setupexternalfigure

It’s probable that your pictures have a high resolution (dpi) defined, 
so ConTeXt displays them according to that in their “natural” size.

Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-06-15 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1166310856.2359403.1655309476596.ref@mail.yahoo.com>
2022-06-15 16:11 ` Why are some images rendered very tiny? Joel via ntg-context
2022-06-15 16:33   ` Henning Hraban Ramm 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).