))
(defun www-page-display-image (file &optional size image-root pivot-mode)
+ (if (stringp pivot-mode)
+ (setq pivot-mode (intern pivot-mode)))
(setq file (expand-file-name file image-root))
(when (file-exists-p file)
(let (file-dir file-name
(setq file-dir (file-name-directory file)
file-name (file-name-nondirectory file))
(setq size-opt
- (or (when (and pivot-mode
+ (or (when (and (eq pivot-mode t)
(> width height))
(with-temp-buffer
(call-process "identify" nil t nil file)
(null (file-name-extension target)))
'dir)))
;; (setq file (car (cdr (assoc "file" params))))
- (setq size (car (cdr (assoc "size" params))))
+ (setq size (or (car (cdr (assoc "size" params)))
+ 'VGA))
(setq pivot-mode t)
(if (setq ret (cdr (assoc "p" params)))
(setq pivot-mode (car ret)))