Gnus development mailing list
 help / color / mirror / Atom feed
From: Enrico Schumann <es@enricoschumann.net>
To: "Peter Münster" <pmlists@free.fr>
Cc: ding@gnus.org
Subject: Re: piping html inline images through filter
Date: Wed, 14 Oct 2015 13:47:38 +0200	[thread overview]
Message-ID: <874mhty8md.fsf@enricoschumann.net> (raw)
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")

On Tue, 13 Oct 2015, Peter Münster <pmlists@free.fr> 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.

-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net



  reply	other threads:[~2015-10-14 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 20:16 Peter Münster
2015-10-14 11:47 ` Enrico Schumann [this message]
2015-10-14 17:42   ` Peter Münster
2015-10-15 14:26     ` Enrico Schumann

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=874mhty8md.fsf@enricoschumann.net \
    --to=es@enricoschumann.net \
    --cc=ding@gnus.org \
    --cc=pmlists@free.fr \
    /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).