# HG changeset patch # User Juri Linkov # Date 1216511762 0 # Node ID 522e28ddd67f665f11b91240785de5ca4b6d8e3d # Parent e1156184215a72059f631955bafd84ef343abb08 (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. diff -r e1156184215a -r 522e28ddd67f lisp/image-dired.el --- a/lisp/image-dired.el Sat Jul 19 23:55:41 2008 +0000 +++ b/lisp/image-dired.el Sat Jul 19 23:56:02 2008 +0000 @@ -229,7 +229,7 @@ :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 @@ :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 @@ "-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\""