From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86217 Path: news.gmane.org!not-for-mail From: Enrico Schumann Newsgroups: gmane.emacs.gnus.general Subject: Re: piping html inline images through filter Date: Wed, 14 Oct 2015 13:47:38 +0200 Message-ID: <874mhty8md.fsf@enricoschumann.net> References: <87d1wio76u.fsf@roche-blanche.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444823366 30129 80.91.229.3 (14 Oct 2015 11:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 11:49:26 +0000 (UTC) Cc: ding@gnus.org To: Peter =?utf-8?Q?M=C3=BCnster?= Original-X-From: ding-owner+M34451@lists.math.uh.edu Wed Oct 14 13:49:13 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmKYJ-0003ka-H4 for ding-account@gmane.org; Wed, 14 Oct 2015 13:49:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1ZmKXJ-000589-6n; Wed, 14 Oct 2015 06:48:01 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZmKXG-00057h-SV for ding@lists.math.uh.edu; Wed, 14 Oct 2015 06:47:58 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZmKXF-0003Iz-Fy for ding@lists.math.uh.edu; Wed, 14 Oct 2015 06:47:58 -0500 Original-Received: from www231.your-server.de ([188.40.28.11]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ZmKXC-0001Jh-7l for ding@gnus.org; Wed, 14 Oct 2015 13:47:54 +0200 Original-Received: from [88.198.220.131] (helo=sslproxy02.your-server.de) by www231.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1ZmKX3-00059K-SA; Wed, 14 Oct 2015 13:47:45 +0200 Original-Received: from [109.164.234.9] (helo=radiance.enricoschumann.net) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1ZmKX0-0003Of-KA; Wed, 14 Oct 2015 13:47:42 +0200 In-Reply-To: <87d1wio76u.fsf@roche-blanche.net> ("Peter \=\?utf-8\?Q\?M\=C3\=BCn\?\= \=\?utf-8\?Q\?ster\=22's\?\= message of "Tue, 13 Oct 2015 22:16:25 +0200") X-Authenticated-Sender: es@enricoschumann.net X-Virus-Scanned: Clear (ClamAV 0.98.7/20964/Wed Oct 14 06:38:13 2015) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86217 Archived-At: On Tue, 13 Oct 2015, Peter M=C3=BCnster writes: > Hi, > > How would it be possible to pipe html inline images through a filter > program please? > > Use case: some people often send me messages with inline images that are > screenshots (GIF images with mostly text). When replying, I would like > to quote the text of the images. > > Idea: > - display article in html mode > - call a washing function, that pipes all images through a filter > (OCR program, that converts images to text) > - then reply to the message and have all inline images quoted as text > > How could I make such a washing function please? Or do you have better > ideas? > > TIA for any help, For processing specific parts of the email you could first save the interesting parts to some tmp-directory (for instance with 'gnus-summary-save-parts'). Then run a 'shell-command' that does all the computations on the image(s), the output of which you insert into your reply. --=20 Enrico Schumann Lucerne, Switzerland http://enricoschumann.net