;;; www-page.el --- Album page generator for page.cgi.
-;; Copyright (C) 2005,2006 MORIOKA Tomohiko
+;; Copyright (C) 2005,2006,2007 MORIOKA Tomohiko
;; Keywords: Photo, image, album, HTML, WWW
(WUXGA 1920 1200)
(QXGA 2048 1536)
(WQXGA 2560 1600)
+ (original nil nil)
))
(defun decode-url-string (string &optional coding-system)
(when (file-exists-p file)
(let (file-dir file-name
resized-file resized-dir
- spec)
+ spec width height)
(cond
(size
(setq file-dir (file-name-directory file)
size file-dir))))
(unless (file-exists-p resized-file)
(setq size (intern size))
- (if (setq spec (assq size www-page-size-specs))
+ (if (and (setq spec (assq size www-page-size-specs))
+ (setq width (nth 1 spec))
+ (setq height (nth 2 spec)))
(progn
(condition-case nil
(unless (file-exists-p resized-dir)
(error nil))
(call-process
"convert" nil nil nil
- "-resize" (format "%dx%d>" (nth 1 spec)(nth 2 spec))
+ "-resize" (format "%dx%d>" width height)
file resized-file)
)
(setq resized-file file)))