From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Svg mode Date: Fri, 15 Oct 2010 17:20:39 +0200 Message-ID: <83vd53bhyw.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1287156358 23719 80.91.229.12 (15 Oct 2010 15:25:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 15:25:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oleksandr Gavenko Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 17:25:55 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6mAN-0004db-AV for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 17:25:55 +0200 Original-Received: from localhost ([127.0.0.1]:42271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6mAM-0007DR-8x for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 11:25:54 -0400 Original-Received: from [140.186.70.92] (port=34401 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6m9o-0004aS-0J for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 11:25:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6m5J-0001Qe-Bo for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 11:20:43 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:44498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6m5J-0001Q9-3Z for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 11:20:41 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LAC00L007XNQO00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 17:20:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.93.189]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LAC00LNA7YEMR60@a-mtaout23.012.net.il>; Fri, 15 Oct 2010 17:20:39 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75135 Archived-At: > From: Oleksandr Gavenko > Date: Fri, 15 Oct 2010 17:21:47 +0300 > > MS Windows: > > $ strings emacs.exe | grep png > libpng12d.dll > libpng12.dll > libpng.dll > libpng13d.dll > libpng13.dll This doesn't do what you think it does. In general, the mere fact that libpng is seen in some string within a binary does not mean the binary supports display of PNG images. For example, it could come from a message string like "Sorry, libpng12.dll is not supported." What you see is that Emacs knows _something_ about PNG libraries. That something comes from image-library-alist (dynamic-library-alist, if you are using the development sources of Emacs 24). This alist simply says that to support PNG, Emacs needs to load one of these dynamic libraries. > But 'depends.exe' show that 'libpng12.dll' come from third party: > > c:\opt\graphviz2.26.3\bin\LIBPNG12.DLL Emacs loads these DLLs dynamically and on demand, so `depends.exe' will not necessarily see any dependencies, because technically Emacs does not "depend" on them -- it can run without them. > Emacs from ftp.gnu.org is come only with 'libXpm.dll'. Yes, because of copyright considerations, and because without XPM support Emacs cannot show its toolbar icons in color. > With 'grep svg' on Windows: > > $ strings emacs.exe | grep svg > librsvg-2-2.dll See above: this doesn't mean what you think it does. > I download 'librsvg-2-2.dll' from > http://ftp.gnome.org/pub/gnome/binaries/win32/librsvg/2.22/ > > and put it to PATH. Emacs on open .svg say: > > byte-code: Cannot display image: (Invalid image type `svg') > image-type: Cannot determine image type Exactly! The Emacs binary you have was not compiled with SVG support, so it does not recognize the SVG format. The SVG DLL is loaded only if Emacs recognizes this format, whose support is optional (and doesn't work very well on Windows, because the SVG support DLL is not stable enough, AFAIK). > So try search svg string in emacs executable and install appropriate lib. That's not guaranteed to solve the problem, as I explain above.