unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: docview issues on windows: pdf and png files
Date: Fri, 02 Aug 2013 09:09:03 +0300	[thread overview]
Message-ID: <83fvuszksg.fsf@gnu.org> (raw)
In-Reply-To: <CA+2DmwiKb9TTek=xMHahZXQJjH+FcJ5rkeGnEsKXN4i2113siA@mail.gmail.com>

> From: Vinh Nguyen <vinhdizzo@gmail.com>
> Date: Thu, 1 Aug 2013 18:50:21 -0700
> 
> I am having issues with rendering pdf files using doc view on windows.
> I downloaded emacs 24.3 windows binaries, have ghostscript installed
> via cygwin (M-! gs confirms gs works), and placed libpng dll (libxpm,
> jpeg, etc) in my emacs/bin directory (and installed via the setup
> installation file). I’ve also installed these libraries using cygwin.
> When I open an actual png file (ghostscript converts pdf to png, so
> testing this), the image also does not render. I get this message:
> “Cannot display image: (Invalid image specification)”.
> 
> Would appreciate if anyone could guide me to getting this to work on
> windows. Thanks so much!

What does this produce in Emacs:

  M-: (image-type-available-p 'png) RET

My guess is it says "nil", which means you don't have PNG image
support in your Emacs.

In a nutshell, don't mix a native Windows build of Emacs with Cygwin
libraries -- that will never work.  Even Cygwin Ghostscript could give
you trouble, when used from a native Windows Emacs.

If you want a Cygwin environment, install a Cygwin Emacs.  If you want
a native Windows environment, install native Windows image libraries
(see the file README.W32 for URLs) and a native Windows build of
Ghostscript.




  reply	other threads:[~2013-08-02  6:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02  1:50 docview issues on windows: pdf and png files Vinh Nguyen
2013-08-02  6:09 ` Eli Zaretskii [this message]
2013-08-02 20:03 ` Vinh Nguyen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fvuszksg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).