[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: WIDTH attribute of IMG



>>>>> In [emacs-w3m : No.01068] 
>>>>>	Pavel@Janik.cz (Pavel Janík) wrote:

Pavel> are there any plans to support WIDTH and HEIGHT attributes of
Pavel> IMG?

Do you have a super computer?  It might be a mission impossible.
Of course, it can be achieved if we don't spare the cpu costs,
for example:

(with-temp-buffer
  (insert-file-contents "Blue.gif")
  (let ((coding-system-for-read 'binary)
	(coding-system-for-write 'binary))
    (call-process-region (point-min) (point-max)
			 "giftopnm" t t nil)
    (call-process-region (point-min) (point-max)
			 "pnmscale" t t nil
			 "-xysize" WIDTH HEGHT)
    (create-image (buffer-string) 'pbm t)))

Imagine that the equivalent process is performed on each image.
Any objections?
-- 
Katsumi Yamaoka <yamaoka@jpl.org>