ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez <oinos@gmx.es>
Subject: Re: ICC profiles for \externalfigure
Date: Mon, 9 Oct 2017 20:16:07 +0200	[thread overview]
Message-ID: <9c695ca6-3f5f-ad20-7e10-ca141f419a28@wxs.nl> (raw)
In-Reply-To: <4da0a758-9297-fa4c-f922-8dd4d5ba01b9@gmx.es>

On 10/8/2017 11:09 AM, Pablo Rodriguez wrote:
> Dear Luigi and Hans,
> 
> I have the following sample:
> 
>      \setupbackend
>        [format=PDF/A-3a,
>         intent=sRGB IEC61966-2.1,
>         profile={sRGB.icc,default_gray.icc},
>         level=0]
> 
>      \setuptagging[state=start]
> 
>      \setupcolors[cmyk=no, pagecolormodel=auto]
> 
>      \setupexternalfigure[location=default]
> 
>      \startTEXpage[offset=1em, align=center]
>      \dontleavehmode
>      \externalfigure[cow-black]
> 
>      \dontleavehmode
>      \externalfigure[cow-brown]
> 
>      \dontleavehmode
>      \externalfigure[basic-figures.pdf][scale=200]
>      \stopTEXpage
>      \stoptext
> 
> The third external figure is found at
> http://pdf.ousia.tk/basic-figures.pdf. I included it, since it adds a
> transparency group (and I guess this might be relevant).
> 
> PDF/A-3a validation (http://verapdf.org) warns about XObjects not having
> any ICC profile.
> 
> Would it be possible to add the "profile" key to \externalfigure, so
> that each figure may have its own profile (or the reference to the
> profile) added?

i looked into it and it's not going to happen

(1) we don't interpret the included images

(2) and even if we could mess with the either or not present resource 
getting the resource from someplace (main document, upstream object) is 
dubious and fragile too

so .. fix the included images ... (bitmap images can be autoconverted 
into profiled ones runtime but i didn't figure out a call to whatever 
program for pdf yet)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2017-10-09 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-08  9:09 Pablo Rodriguez
2017-10-09 18:16 ` Hans Hagen [this message]
2017-10-09 19:55   ` Pablo Rodriguez
2017-10-09 23:02     ` Hans Hagen
2017-10-10  9:27       ` Henning Hraban Ramm
2017-10-10 20:11         ` Pablo Rodriguez
2017-10-10 20:09       ` Pablo Rodriguez

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=9c695ca6-3f5f-ad20-7e10-ca141f419a28@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).