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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18695 invoked from network); 31 Jul 2022 10:15:58 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2022 10:15:58 -0000 Received: from localhost ([::1]:44076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI5zI-0002uS-AL for ml@inbox.vuxu.org; Sun, 31 Jul 2022 06:15:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI5yo-0002uG-D9 for info-gnus-english@gnu.org; Sun, 31 Jul 2022 06:15:26 -0400 Received: from ciao.gmane.io ([116.202.254.214]:53286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI5yl-0004rA-JU for info-gnus-english@gnu.org; Sun, 31 Jul 2022 06:15:26 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oI5yi-0001Z2-El for info-gnus-english@gnu.org; Sun, 31 Jul 2022 12:15:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Generate and insert Face header from jpg file Date: Sun, 31 Jul 2022 12:15:13 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <878ro9wpu6.fsf@tullinup.koldfront.dk> References: <87pmhmromv.fsf@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:xdFKOyuiOzz11LSwP53rFGslEug= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc X-Now-Playing: Something in the Way, Nevermind (Nirvana) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR 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" Satoshi writes: > (setq message-required-headers > (nconc message-required-headers > (list '(Face . (lambda () > (gnus-face-from-file "~/face.jpg")))))) > > But I couldn't generate and insert Face header at writing a mail. What happens when you try? Do you get an 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)? To eliminate that potential source of problems you could save the image as a PNG and use gnus-convert-png-to-face instead. Best regards, Adam -- "perhaps he does not understand that business needs Adam Sjøgren to be run without idiot balloons or child games." asjo@koldfront.dk