We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write an Emacs function that will change IMG tags in documentation from:
<img src="xxx.gif">
to
<img width="W" height="H" src="xxx.gif">
where W and H are half of gif width and height. (Half because screenshots are made on retina display).
W
H
Invocation should be:
emacs -l haskell-manual-gif-size-fixup.el -f haskell-manual-gif-size-fixup-batch-and-exit *.html
The text was updated successfully, but these errors were encountered:
To get gif dimensions:
(defun get-gif-dimensions (filename) (interactive "fFile name:") (with-temp-buffer (insert-file-contents-literally filename nil 0 10 nil) (let ((result (cons (+ (char-after 7) (* 256 (char-after 8))) (+ (char-after 9) (* 256 (char-after 10)))))) (if (called-interactively-p) (message "Dimensions: %dx%d" (car result) (cdr result))) result)))
Sorry, something went wrong.
No branches or pull requests
Write an Emacs function that will change IMG tags in documentation from:
to
where
W
andH
are half of gif width and height. (Half because screenshots are made on retina display).Invocation should be:
The text was updated successfully, but these errors were encountered: