summaryrefslogtreecommitdiff
path: root/lisp/image-dired.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2008-07-19 23:56:02 +0000
committerJuri Linkov <juri@jurta.org>2008-07-19 23:56:02 +0000
commitfd9a8d1607d64306f7a82d5346830876425eb138 (patch)
tree9ac720eac5f0e2f19ceed92daeca2b202a84474e /lisp/image-dired.el
parenta41925a2fedc6407f100955eb60aa75d67e04370 (diff)
downloademacs-fd9a8d1607d64306f7a82d5346830876425eb138.tar.gz
(image-dired-cmd-create-thumbnail-options)
(image-dired-cmd-create-temp-image-options) (image-dired-cmd-create-standard-thumbnail-command): Add > to the ImageMagick command line to change the dimensions of the image only if its width or height exceeds the geometry specification.
Diffstat (limited to 'lisp/image-dired.el')
-rw-r--r--lisp/image-dired.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index d92c1f8cd3b..7b0a55de226 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -229,7 +229,7 @@ Used together with `image-dired-cmd-create-thumbnail-options'."
:group 'image-dired)
(defcustom image-dired-cmd-create-thumbnail-options
- "%p -size %wx%h \"%f\" -resize %wx%h -strip jpeg:\"%t\""
+ "%p -size %wx%h \"%f\" -resize \"%wx%h>\" -strip jpeg:\"%t\""
"Format of command used to create thumbnail image.
Available options are %p which is replaced by
`image-dired-cmd-create-thumbnail-program', %w which is replaced by
@@ -247,7 +247,7 @@ Used together with `image-dired-cmd-create-temp-image-options'."
:group 'image-dired)
(defcustom image-dired-cmd-create-temp-image-options
- "%p -size %wx%h \"%f\" -resize %wx%h -strip jpeg:\"%t\""
+ "%p -size %wx%h \"%f\" -resize \"%wx%h>\" -strip jpeg:\"%t\""
"Format of command used to create temporary image for display window.
Available options are %p which is replaced by
`image-dired-cmd-create-temp-image-program', %w and %h which is replaced by
@@ -280,7 +280,7 @@ with the information required by the Thumbnail Managing Standard."
"-set \"Thumb::URI\" \"file://%f\" "
"-set \"Description\" \"Thumbnail of file://%f\" "
"-set \"Software\" \"" (emacs-version) "\" "))
- "-thumbnail %wx%h png:\"%t\""
+ "-thumbnail \"%wx%h>\" png:\"%t\""
(if image-dired-cmd-pngnq-program
(concat
" ; " image-dired-cmd-pngnq-program " -f \"%t\""