Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: info-gnus-english@gnu.org
Subject: Re: max-size for displayed PGP image on signed email?
Date: Thu, 29 Jan 2015 09:13:52 +0100	[thread overview]
Message-ID: <87egqe0zsv.fsf@mm.st> (raw)
In-Reply-To: <87386umg10.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Thu, 29 Jan 2015 14:17:47 +1100")


[-- Attachment #1.1: Type: text/plain, Size: 1237 bytes --]

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Kevin Brubeck Unhammer <unhammer@fsfe.org> writes:
>
>> I like how gnus shows the image belonging to the key of a signed email,
>> but some people have really big heads or something and I have to scroll
>> a lot to get to what they actually wrote.
>>
>> Is it possible to have gnus auto-resize the image to a maximum size like
>> 70px?
>
> That should be possible, but I can't really find what function is
> showing the signed email image at all.  Do you know what package it's
> in?

Resizing already seems to be happening in
mml2015-epg-key-image-to-string according to
mml2015-maximum-key-image-dimension, but now I see there are just some
emails where the resizing doesn't happen (even though the function is
called, and the signer is the same).

After some digging, it seems gnus-rescale-image returns early on some
articles because

  (not (get-buffer-window (current-buffer)))

For articles where it works, current-buffer is
#<buffer *Article meh*>

For articles where it returns early, current-buffer is
#<buffer  *mm-uu*-591048>

(Why does gnus-rescale-image need a current-buffer window anyway?)


-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]



  reply	other threads:[~2015-01-29  8:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.17523.1420806804.1147.info-gnus-english@gnu.org>
2015-01-29  3:17 ` Lars Ingebrigtsen
2015-01-29  8:13   ` Kevin Brubeck Unhammer [this message]
2015-01-29  8:20     ` Lars Ingebrigtsen
2016-11-16 11:45       ` Kevin Brubeck Unhammer
2018-04-11 17:32         ` Lars Ingebrigtsen
     [not found]         ` <mailman.12051.1523467941.27995.info-gnus-english@gnu.org>
2018-04-13  6:23           ` Gijs Hillenius
2015-01-09 12:29 Kevin Brubeck Unhammer

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=87egqe0zsv.fsf@mm.st \
    --to=unhammer@fsfe.org \
    --cc=info-gnus-english@gnu.org \
    --cc=larsi@gnus.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).