all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Allan <mu8ja0i@earthlink.net>
To: help-gnu-emacs@gnu.org
Subject: Re: image-dired shows images as text
Date: Fri, 28 Dec 2007 21:43:25 -0600	[thread overview]
Message-ID: <uve6ib1ya.fsf@earthlink.net> (raw)
In-Reply-To: mailman.5449.1198829754.18990.help-gnu-emacs@gnu.org

Nick Roberts <nickrob@snap.net.nz> writes:

> I've checked the change below into CVS.  If Emacs can't find convert it should
> now say so with this patch.  Can you please try to apply it and then post what
> Emacs says to the mailing list.
>
> -- 
> Nick                                           http://www.inet.net.nz/~nickrob
>
>
> *** thumbs.el.~1.35.~	2007-07-27 09:22:25.000000000 +1200
> --- thumbs.el	2007-12-28 21:01:18.000000000 +1300
> *************** ARG any arguments to the ACTION command,
> *** 248,262 ****
>   OUTPUT-FORMAT is the file format to output (default is jpeg),
>   ACTION-PREFIX is the symbol to place before the ACTION command
>                 (defaults to '-' but can sometimes be '+')."
> !   (let ((command (format "%s %s%s %s \"%s\" \"%s:%s\""
> ! 			 thumbs-conversion-program
> ! 			 (or action-prefix "-")
> ! 			 action
> ! 			 (or arg "")
> ! 			 filein
> ! 			 (or output-format "jpeg")
> ! 			 fileout)))
> !     (call-process shell-file-name nil nil nil shell-command-switch command)))
>   
>   (defun thumbs-new-image-size (s increment)
>     "New image (a cons of width x height)."
> --- 248,259 ----
>   OUTPUT-FORMAT is the file format to output (default is jpeg),
>   ACTION-PREFIX is the symbol to place before the ACTION command
>                 (defaults to '-' but can sometimes be '+')."
> !   (call-process thumbs-conversion-program nil nil nil
> ! 		(or action-prefix "-")
> ! 		action
> ! 		(or arg "")
> ! 		filein
> ! 		(format "%s:%s"	(or output-format "jpeg") fileout)))
>   
>   (defun thumbs-new-image-size (s increment)
>     "New image (a cons of width x height)."
I will try to apply the patch, but in the meantime I may have discovered some pertinent information. On Windows XP there is a DOS-style command called "convert" which can be accessed inside a command-prompt window. I wonder if there could be a conflict or confusion with this module?
  c:/WINDOWS/SYSTEM32:
  total used in directory 495476 available 13243296
  -rw-rw-rw-   1 XXXXXXX   root           333 2001-09-12  $ncsp$.inf
  -rw-rw-rw-   1 XXXXXXX   root           860 2002-01-27  $winnt$.inf
  drwxrwxrwx   1 XXXXXXX   root             0 12-28 07:32 .
  drwxrwxrwx   1 XXXXXXX   root             0 12-28 14:25 ..
....
  -rwxrwxrwx   1 XXXXXXX   root         13824 2001-08-18  convert.exe 
....
The way I found this out was that I tried the ImageMagick test in a command window : "convert logo: logo.gif" and got an error instead. When I navigated to the ImageMagick install directory using a DOS-style "cd" command it worked. If you append the ImageMagick directory to the end of the "PATH" environment variable the MS Windows "convert.exe" will be found first.

-- 
Allan

  parent reply	other threads:[~2007-12-29  3:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5189.1198025951.18990.help-gnu-emacs@gnu.org>
2007-12-19 17:05 ` image-dired shows images as text Mathias Dahl
2007-12-19 20:47   ` winuser
2007-12-19 23:03     ` Nick Roberts
     [not found]     ` <mailman.5251.1198106666.18990.help-gnu-emacs@gnu.org>
2007-12-20 15:47       ` Mathias Dahl
2007-12-20 21:41         ` winuser
     [not found]         ` <mailman.5279.1198186888.18990.help-gnu-emacs@gnu.org>
2007-12-20 22:01           ` Mathias Dahl
2007-12-21  3:43             ` winuser
     [not found]             ` <mailman.5286.1198208612.18990.help-gnu-emacs@gnu.org>
2007-12-21  4:24               ` nullius.filius
2007-12-21  1:40         ` Nick Roberts
2007-12-21  8:55           ` Eli Zaretskii
     [not found]           ` <mailman.5287.1198227357.18990.help-gnu-emacs@gnu.org>
2007-12-21 15:27             ` Mathias Dahl
2007-12-21 21:13               ` Nick Roberts
     [not found]               ` <mailman.5313.1198272679.18990.help-gnu-emacs@gnu.org>
2008-01-02 13:32                 ` Mathias Dahl
2007-12-27 23:16   ` Allan
2007-12-28  0:45     ` Nick Roberts
     [not found]     ` <mailman.5445.1198802776.18990.help-gnu-emacs@gnu.org>
2007-12-28  6:28       ` Allan
2007-12-28  7:59         ` nullius.filius
2007-12-29  3:31           ` Allan
2007-12-28  8:15         ` Nick Roberts
     [not found]         ` <mailman.5449.1198829754.18990.help-gnu-emacs@gnu.org>
2007-12-29  3:43           ` Allan [this message]
2007-12-29 23:35             ` Nick Roberts
     [not found]             ` <mailman.5507.1198973294.18990.help-gnu-emacs@gnu.org>
2007-12-30  2:46               ` Allan
2007-12-30  4:53                 ` Nick Roberts
     [not found]                 ` <mailman.5508.1198990422.18990.help-gnu-emacs@gnu.org>
     [not found]                   ` <uir2dok4e.fsf@earthlink.net>
2008-01-01 20:49                     ` Nick Roberts
2007-12-19  0:59 winuser
2007-12-19  2:06 ` Nick Roberts
2007-12-19 15:11   ` winuser
2007-12-19 15:38     ` Peter Dyballa
2007-12-19 21:15     ` Nick Roberts

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=uve6ib1ya.fsf@earthlink.net \
    --to=mu8ja0i@earthlink.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=noreply@accessdenied.xxx \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.