ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joel via ntg-context <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: Joel <uaru99@yahoo.com>
Subject: [NTG-context] How to get an image to fill the maximum available space?
Date: Sat, 30 Mar 2024 02:15:42 +0000 (UTC)	[thread overview]
Message-ID: <702755847.2028514.1711764942052@mail.yahoo.com> (raw)
In-Reply-To: <702755847.2028514.1711764942052.ref@mail.yahoo.com>


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

I have code like this:

    \placefigure[here, force]{my caption}{%        \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%
    }%
I need some images to appear in a book. I need them to keep their proper ratios, but scale up to the maximize the available space.
The image can't be more than \textwidth wide, and can't ever be more than 1.2\textwidth high.
The problem I am getting with this code, and it does seem to be limiting the images to be not bigger than those two dimensions above, is some of the images, for reasons I can't understand, are appearing really tiny and aren't scaling up to fill as much space as is possible. I can't explain why this is happening--the images themselves are very very high resolution.
Is there any way to modify the code to make sure the image stretches up to be the biggest it can, without exceeding the sizes I've listed?
--Joel

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

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

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2024-03-30  2:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <702755847.2028514.1711764942052.ref@mail.yahoo.com>
2024-03-30  2:15 ` Joel via ntg-context [this message]
2024-03-30  9:38   ` [NTG-context] " Henning Hraban Ramm
2024-03-30 11:07     ` Bruce Horrocks
2024-03-30 18:23       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=702755847.2028514.1711764942052@mail.yahoo.com \
    --to=ntg-context@ntg.nl \
    --cc=uaru99@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).