From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108435 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe Date: Sat, 15 Aug 2020 16:39:39 +0100 Organization: The PotHole Press Message-ID: <0bcfc1b2-37fa-484a-37c7-bdb3c8ec35cf@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7273632057220346432==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 15 17:40:00 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6yHn-0007vW-Ug for gctc-ntg-context-518@m.gmane-mx.org; Sat, 15 Aug 2020 17:39:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A365B1A82D3; Sat, 15 Aug 2020 17:39:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15ongqOHDdCV; Sat, 15 Aug 2020 17:39:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B155E1A7DF7; Sat, 15 Aug 2020 17:39:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 77B781A7DEA for ; Sat, 15 Aug 2020 17:39:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wo0diWge9GzP for ; Sat, 15 Aug 2020 17:39:43 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.45; helo=mail-wm1-f45.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DACA11A7D2E for ; Sat, 15 Aug 2020 17:39:43 +0200 (CEST) Original-Received: by mail-wm1-f45.google.com with SMTP id k20so10323691wmi.5 for ; Sat, 15 Aug 2020 08:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:organization:to:message-id:date:user-agent :mime-version:content-language; bh=CRGB7eGMkO7nMDT38fp/28cMaNg0Ahw2GcxccEJVa2A=; b=I7g5wUianTHYGe45NG3G3I4EjYufzB0x8Tdf1D7SHyq6maLOTWhi6A7qzch29GUpOH cjvG0+eHTuNGW4glJQYlTN95WefJfdxCL80x6jklm7YMfyVnSPGEam/7i2nAA98wzlVS Mr7WL5o/aP2c2XGtJhNeZvZRkADpkr5qOO4aj+uOLNGIR7/DTgjh0J5LmOYTBbmrNngG WYV29YY7NmbRHJyAz76Nkf+o1EWamioTV+sF0X9fJUrqe1amsETRhG7BRa8MbrZWXMgC CLAmuM3R84GjgRlH2p7mmUn2YvPAP7/YsU5gBfVsgWzywsWV4r7/hv/Z8me7VKqrG9wd M64g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:organization:to:message-id:date :user-agent:mime-version:content-language; bh=CRGB7eGMkO7nMDT38fp/28cMaNg0Ahw2GcxccEJVa2A=; b=qOxUBvog0p2/tnqInGtncPIQvrOVZZAOmjvZCFWFhi7Ur2rY9tdkhMcoszEtiZDfJ/ mM0jZ2Ho8LUJzyKIqMeJNJlOp5HASEvrx/j5/MVZU32prNwMdTkHw7o6C1yfOfzKrp8I +yIZ8UfryxWmJ4vCH1vbZdmCFIci3/kdIcW/RdrVTjYyAamAQZd1mfXP2MGMxmeb0xrS BWhGXPU8jsAcpD1kSy/e3j3RvbvOJsjGrImgfj+1xl9d68niL1bJMjE8wqAE9rtJsBml 4k9cp3NxKYcXDDNoD6FkocLI7EpW9/QrYvazS+zjuI49p+ZJbcWQlltFKCMdpFLwqKsO RBoQ== X-Gm-Message-State: AOAM531jOnzUGFKqHN04pI5cRavJfTvHLFwA6uLrou57ittJGsywwqG2 +hPLCHtg3vhupmcLKytJCItFZ/eoKNQ= X-Google-Smtp-Source: ABdhPJwVZe3DI8QqJ9slwHs803rXoJ7MvuqBza35EQND7u9L2Sbp5fgBX+5pJrZ4ehEBk8ug9BnJxQ== X-Received: by 2002:a1c:2dcc:: with SMTP id t195mr6849063wmt.166.1597505981834; Sat, 15 Aug 2020 08:39:41 -0700 (PDT) Original-Received: from Keiths-Mac-mini.local (cpc100294-uddi29-2-0-cust139.20-3.cable.virginm.net. [82.42.59.140]) by smtp.googlemail.com with ESMTPSA id q2sm22058358wro.8.2020.08.15.08.39.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Aug 2020 08:39:41 -0700 (PDT) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108435 Archived-At: This is a multi-part message in MIME format. --===============7273632057220346432== Content-Type: multipart/alternative; boundary="------------0E619826D53437437EA5E5E9" Content-Language: en-US This is a multi-part message in MIME format. --------------0E619826D53437437EA5E5E9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Dear List I have come across a problem which I don't think is due to ConTeXt but I'm hopping the great and the good of this list may be able to explain what is going on. The code below produces an MPpage with a shaded background and two graphics along with a line of outlined text. When I view in Adobe (or the output from TeXworks) I see everything as it should be. However, I wanted to convert the MPpage to a jpeg file and when I opened the pdf in either Apple MAC Preview or Gimp 2.10 the two graphics are missing, and I have no idea why. Could someone explain a way round this?  Here is the code. Thanks Keith %%%%%%%%%%%%%%%%%%%%%%%%%% system > system > ConTeXt ver: 2020.07.29 18:36 LMTX fmt: 2020.7.29 int: english/english system > %%%%%%%%%%%%%%%%%%%%%%%%%%% \setuppapersize [A5, portrait] \usecolors[crayola] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ; definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled 14.8cm yscaled 21cm, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ] ; z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240; path carre; carre = z0--z1--z2--cycle; picture pic; pic := image( numeric d; d := 0.0005; for i=1 step -d until d: fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (45) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (90) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (135) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (180) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (225) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; endfor;); draw pic rotatedaround(center pic, 270); draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ; draw lmt_outline [ text = "Page 18" kind = "draw", drawcolor = "VividTangerine", ] xsized TextWidth shifted (1cm,7.67cm); StopPage; \stopMPpage \stoptext --------------0E619826D53437437EA5E5E9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Dear List

I have come across a problem which I don't think is due to ConTeXt but I'm hopping the great and the good of this list may be able to explain what is going on.

The code below produces an MPpage with a shaded background and two graphics along with a line of outlined text. When I view in Adobe (or the output from TeXworks) I see everything as it should be. However, I wanted to convert the MPpage to a jpeg file and when I opened the pdf in either Apple MAC Preview or Gimp 2.10 the two graphics are missing, and I have no idea why.

Could someone explain a way round this?  Here is the code.

Thanks

Keith

%%%%%%%%%%%%%%%%%%%%%%%%%% system >

system > ConTeXt ver: 2020.07.29 18:36 LMTX fmt: 2020.7.29 int: english/english

system >

%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setuppapersize [A5, portrait]

\usecolors[crayola]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled 14.8cm yscaled 21cm,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

z0 = (60,60);

z1 = z0 rotated 120;

z2 = z1 rotated 240;

path carre;

carre = z0--z1--z2--cycle;

picture pic;

pic := image(

numeric d; d := 0.0005;

for i=1 step -d until d:

fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

fill carre rotated (45) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

fill carre rotated (90) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

fill carre rotated (135) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

fill carre rotated (180) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

fill carre rotated (225) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ;

endfor;);

draw pic rotatedaround(center pic, 270);

draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ;

draw lmt_outline [

text = "Page 18"

kind = "draw",

drawcolor = "VividTangerine",

] xsized TextWidth shifted (1cm,7.67cm);

StopPage;

\stopMPpage

\stoptext

--------------0E619826D53437437EA5E5E9-- --===============7273632057220346432== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7273632057220346432==--