ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Keith McKay via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Keith McKay <mckaymeister@gmail.com>
Subject: Re:  setupexternalfigures and resoĺution
Date: Fri, 2 Sep 2022 09:39:59 +0100	[thread overview]
Message-ID: <CABX+t6Ao4ZY1jQDn8_ohSDSJQJPZspCrY9V0ptjOB3eTWAkwxg@mail.gmail.com> (raw)
In-Reply-To: <6082bf77-0407-6bcb-18b9-8e195b7e5283@fiee.net>


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

Thanks for this code Hraban. I tried this last night and it worked really
well. I did have one stumbling block when I noticed that those image files
with a space in their names were not found, however renaming  without a
space solved the problem. Is this a bug or a feature?
Thanks
Keith McKay

On Thu, 1 Sep 2022, 09:52 Henning Hraban Ramm via ntg-context, <
ntg-context@ntg.nl> wrote:

> Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context:
> >
> > Hi,
> >
> > what is resolution meant to do?
> >
> > Whatever I insert as resolution, I get no change.
> >
> > \setupexternalfigure[location={default,local},resolution=30]
> > \starttext
> > \externalfigure[hacker]
> > \stoptext
> >
> > What am I missing?
>
> The resolution parameter is still not used by default ConTeXt, sorry.
>
> But you can use it with the attached lua file like:
>
>
> \loadluafile[grph-downsample]
> \doifmodeelse{print}{%
>         \def\Resolution{300}
> }{%
>         \def\Resolution{96}
> }%
>
> \setupexternalfigures[
>    %directory={./Logos,img},
>    conversion=lowres.jpg,
>    resolution=\Resolution,
> ]
>
>
> Hraban
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2691 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
___________________________________________________________________________________

  parent reply	other threads:[~2022-09-02  8:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01  8:44 juh+ntg-context--- via ntg-context
2022-09-01  8:51 ` Henning Hraban Ramm via ntg-context
2022-09-01  8:56   ` Henning Hraban Ramm via ntg-context
2022-09-01 10:37     ` juh+ntg-context--- via ntg-context
2022-09-01 13:05       ` Henning Hraban Ramm via ntg-context
2022-09-01 11:43   ` juh+ntg-context--- via ntg-context
2022-09-01 13:04     ` Henning Hraban Ramm via ntg-context
2022-09-01 17:22       ` juh+ntg-context--- via ntg-context
2022-09-02  8:39   ` Keith McKay via ntg-context [this message]
2022-09-02  9:26     ` Henning Hraban Ramm via ntg-context

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=CABX+t6Ao4ZY1jQDn8_ohSDSJQJPZspCrY9V0ptjOB3eTWAkwxg@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mckaymeister@gmail.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).