From: Satoshi Yoshida <dynamisxar@icloud.com>
To: info-gnus-english@gnu.org
Subject: Re: Generate and insert Face header from jpg file
Date: Sun, 31 Jul 2022 21:18:29 +0900 [thread overview]
Message-ID: <87o7x5scfe.fsf@icloud.com> (raw)
In-Reply-To: <878ro9wpu6.fsf@tullinup.koldfront.dk> ("Adam =?iso-8859-1?Q?Sj=F8gren=22's?= message of "Sun, 31 Jul 2022 12:15:13 +0200")
Adam Sjøgren <asjo@koldfront.dk> writes:
> What happens when you try? Do you get an error message?
Nothing happened. Just I received test mail with no Face header.
I got no error message.
> You have chosen to use gnus-face-from-file and a JPEG - the
> documentation says that it uses gnus-convert-image-to-face-command to
> convert the image to PNG:
>
> ,----[ C-h v gnus-convert-image-to-face-command RET ]
> | gnus-convert-image-to-face-command is a variable defined in ‘gnus-fun.el’.
> |
> | Its value is "convert -scale 48x48! %s -colors %d png:-"
> |
> | Command for converting an image to a Face.
> |
> | The command must take an image filename (first format argument
> | "%s") and the number of colors (second format argument: "%d")
> | as input. The output must be the Face header data on stdout in
> | PNG format.
> |
> `----
>
> Do you have ImageMagick installed on your machine (i.e. the package that
> contains the "convert" command)?
OK. I installed ImageMagick and confirmed "convert" command is valid.
I retried to send test mail and got time lag.
It is evidence that Gnus processed something.
Error mssage wasn't displayed.
But I received test mail with no Face header again.
> To eliminate that potential source of problems you could save the image
> as a PNG and use gnus-convert-png-to-face instead.
I see. I generated PNG file by GIMP because I am used to it.
And I set .gnus.el
(setq message-required-headers
(nconc message-required-headers
(list '(Face . (lambda ()
(gnus-convert-png-to-face "~/face.png"))))))
Finally I generated and inserted Face header succesfully.
Thank you very much.
--
Satoshi Yoshida
next prev parent reply other threads:[~2022-07-31 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-31 2:40 Satoshi Yoshida
2022-07-31 10:15 ` Adam Sjøgren
2022-07-31 12:18 ` Satoshi Yoshida [this message]
2022-08-01 2:29 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o7x5scfe.fsf@icloud.com \
--to=dynamisxar@icloud.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).