From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6476 Path: main.gmane.org!not-for-mail From: Bruce Horrocks Newsgroups: gmane.comp.tex.context Subject: Problem with mis-identified .png graphics files when generating DVI Date: Mon, 7 Jan 2002 12:33:45 +0000 Sender: owner-ntg-context@let.uu.nl Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed;boundary="=_Turnpike_HEqkcVBpWZO847aR=" X-Trace: main.gmane.org 1035397004 10921 80.91.224.250 (23 Oct 2002 18:16:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:16:44 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6476 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6476 This is a MIME message --=_Turnpike_HEqkcVBpWZO847aR= Content-Type: text/plain;charset=us-ascii;format=flowed Hi all, I posted the attached a while ago but have received no responses. I'm still stuck though. :-( If there was anyone who had half an idea but didn't post a reply because they thought that someone else might know better then please feel free to come forward now. Thanks in advance. ------- Forwarded message follows ------- --=_Turnpike_HEqkcVBpWZO847aR= Content-Type: message/rfc822 X-Mailing-Lists: !ntg-ConTeXt Received: from pop3.mail.demon.net by granby.demon.co.uk with POP3 id <"granby.1009737891:20:11765:1729".granby@pop3.mail.demon.net> for ; Mon, 31 Dec 2001 11:25:11 +0000 Return-Path: Received: from punt-2.mail.demon.net by mailstore for 01.0032@granby.demon.co.uk id 1009737891:20:11765:1729; Sun, 30 Dec 2001 18:44:51 GMT Received: from smail.let.uu.nl ([131.211.194.45]) by punt-2.mail.demon.net id ab2128435; 30 Dec 2001 17:42 GMT Received: by smail.let.uu.nl (8.9.3/8.9.3/JEvW) id SAA03791 for ntg-context-list; Sun, 30 Dec 2001 18:11:08 +0100 (MET) X-Authentication-Warning: smail.let.uu.nl: majordom set sender to owner-ntg-context@let.uu.nl using -f Received: from spider.let.uu.nl (spider.let.uu.nl [131.211.194.47]) by smail.let.uu.nl (8.9.3/8.9.3/JEvW) with ESMTP id SAA03787 for ; Sun, 30 Dec 2001 18:11:05 +0100 (MET) Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by spider.let.uu.nl (8.11.2/8.11.2/SYSADM) with ESMTP id fBUHB4607410 for ; Sun, 30 Dec 2001 18:11:04 +0100 (MET) Received: from granby.demon.co.uk ([158.152.19.107]) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 16KjUD-000JNv-0A for ntg-context@ntg.nl; Sun, 30 Dec 2001 17:11:03 +0000 Message-ID: <95L6D5B4n0L8Ew0a@granby.demon.co.uk> Date: Sun, 30 Dec 2001 17:08:08 +0000 To: ntg-context@ntg.nl From: Bruce Horrocks Subject: Problem with mis-identified .png graphics files when generating DVI MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii User-Agent: Turnpike/6.00-S () Sender: owner-ntg-context@let.uu.nl Precedence: bulk I have a simple test file that includes a PNG graphic. Generating a PDF file works fine. However, when I try to produce a DVI file, ConTeXt mis- identifies the PNG file as EPS. I'd like to know why and what can be done, if anything? Here is the test file: \traceexternalfigurestrue \starttext \startfiguretext[right][fig:example] {none} {\externalfigure [zzz.png] [width=2in,height=1in] } This is a test. \stopfiguretext \stoptext In the log file, I get the following when generating the PDF file: systems : begin file 00_master at line 3 <./zzz.png> figures : dimensions of ./zzz.png loaded from figurefile itself [locating ./zzz.png as png] [analyzing ./zzz.png on . as png] [found] [./zzz.pn g: t={png} m={png} l=dummy w=9472573 h=4736286 sx=73.2 sy=75.0 ox=\scratchdimen oy=\scratchdimen ] (./00_master.tuo) floatblocks : 1 placed and, as I said, this works fine - ConTeXt has correctly identified the files as PNG and found the correct dimensions and scale factors. When producing a DVI file, the equivalent extract from the logfile is: systems : begin file 00_master at line 3 figures : figure ./zzz.png has zero dimensions figures : dimensions of ./zzz.png loaded from figurefile itself [locating ./zzz.png as eps] [analyzing ./zzz.png on . as eps] [zero] [found] [. /zzz.png: t={eps} m={eps} l=dummy w=9472573 h=4736286 sx=0.09999 sy=0.09999 ox= \scratchdimen oy=\scratchdimen ] (./00_master.tuo) floatblocks : 1 placed This doesn't work, presumably because ConTeXt is mis-interpreting the file as EPS and messing up the scale factors. What I would like to know is where/why this is happening? As far as I can tell, the file core-fig.tex contains the relevant code. However, my knowledge of (Con)TeX is obviously not good enough because I don't understand how this code is driver specific? If anyone can shed any light on this then I would be most grateful. Version info: This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1) (preloaded format=cont-en 2001.12.30) 30 DEC 2001 16:53 ConTeXt ver: 2001.12.20 fmt: 2001.12.30 int: english mes: english Thanks in advance. -- Bruce Horrocks Hampshire England bh@granby.demon.co.uk --=_Turnpike_HEqkcVBpWZO847aR= Content-Type: text/plain;charset=us-ascii;format=flowed -- Bruce Horrocks Hampshire England bh@granby.demon.co.uk --=_Turnpike_HEqkcVBpWZO847aR=--