From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1374 invoked from network); 31 Jul 2022 12:18:40 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2022 12:18:40 -0000 Received: from localhost ([::1]:38140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI7u2-0000ya-2T for ml@inbox.vuxu.org; Sun, 31 Jul 2022 08:18:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI7tz-0000yH-5O for info-gnus-english@gnu.org; Sun, 31 Jul 2022 08:18:35 -0400 Received: from pv50p00im-ztdg10021901.me.com ([17.58.6.55]:37428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI7tx-00065U-Mk for info-gnus-english@gnu.org; Sun, 31 Jul 2022 08:18:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1659269911; bh=TasiB+I7ZIpH6fzA5Xrs8Kh9rAFZSfpuKjuSB8wfl3w=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Vts3YOBl3k+CvujTQek2Lfs2i14XEBLYOzsXracIosQiek2nRpZ3pKqgm6wPL5c1j nzAjrtASxheI7KdNyiuECZcgk8p8vrqo+0mIMQCXGbAS2OWIBzY8cg/K4iL0624+eA 5VNhR8jHwwLAO6WL2xh1rAZcXoojw3YZFR4diLD1nCIUT685rHHxS0TpmEb2addmlJ rveIhZaX+QT+P3Fu4s3rmxpTo9P6wGjh7KopIXm0iZ0U3BEtVnkOS75HpQVOYkaFW1 8jScqOVRsXhnS0y4afVp9rjYt/ABPgM+bGhoiFK8oHvPlCI1dx1ZOhUpbNqVEEJqF7 HjLZoT/fmM9mQ== Received: from arch (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10021901.me.com (Postfix) with ESMTPSA id 35A5E81542 for ; Sun, 31 Jul 2022 12:18:29 +0000 (UTC) From: Satoshi Yoshida To: info-gnus-english@gnu.org Subject: Re: Generate and insert Face header from jpg file References: <87pmhmromv.fsf@icloud.com> <878ro9wpu6.fsf@tullinup.koldfront.dk> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUREREsLCxHR0djY2N/ f3+Wlpa1tbXLy8snJU0UAAAB4ElEQVQ4y43Ty3LbIBQGYPwGxp7p3sjqPoJmHwPN3obTfSLgBSLx +v2RkCXHXfR4xp7R53NDEvMU/xnMx/+BnMcVllIpWkB+hpvSFNNd7qV6vuNSWkiaoSaEF8YY5/w1 13ILvLE5jqkKqwn7Crv3AuMdlgTGfjxA2O/qdX7Ms8zwwadSGIzzqUmu8Mb3exA/4PM+p8xwEide Qghx+jlBnqAXgh9EiUY27QY+kSDkEhu4lv9ag1BKXtIKNyGb39EjjJTdny0oE3Pw0TvdbOF6xhmX dUvKywPQAq47PQHONADqhgXStfUeN2/E9Uf4aG9SUYpBC9XxTanP9iIOisIF63R83SN9tQZtySny uhMbGH95Cp4cRa9lkx9Ad5Z63wmpm7gFpxqKfcAMuqG0QM7Wl3l7ctbqpky+QnmKesKG+mypAn78 9DwGGzHW2VCcAd+BZihjKeNXGJARYjCllDK2FGFTpxFA3hkKThszNWHz1CgVzpeGgtUSELfQe2Mm UFN3lhdArXJiUiq7gVCmQpMK6Q4D5onBGWueAB1Q3n+HEcduvXFOfwMcCgpNLQBxA9g94Ihv3bFA XqHH7mO5geIRBhvwlERU6mQ9xLm3MxEpSEALs2YMeAHSgHE7KcvLQLj2FwWFiCG4gGtpAAAAAElF TkSuQmCC X-Operating-System: Linux 5.18.15-arch1-1 x86_64 Date: Sun, 31 Jul 2022 21:18:29 +0900 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") Message-ID: <87o7x5scfe.fsf@icloud.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 4hlLWnGx746pPCGuAVkrAKauOL5lY4S0 X-Proofpoint-ORIG-GUID: 4hlLWnGx746pPCGuAVkrAKauOL5lY4S0 X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 clxscore=1015 mlxlogscore=683 spamscore=0 phishscore=0 mlxscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207310063 Received-SPF: pass client-ip=17.58.6.55; envelope-from=dynamisxar@icloud.com; helo=pv50p00im-ztdg10021901.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Adam Sj=C3=B8gren 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 =E2=80=98gn= us-fun.el=E2=80=99. > |=20 > | Its value is "convert -scale 48x48! %s -colors %d png:-" > |=20 > | Command for converting an image to a Face. > |=20 > | 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. > |=20 > `---- > > 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. --=20 Satoshi Yoshida