From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17403 Path: news.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.gnus.user Subject: Re: max-size for displayed PGP image on signed email? Date: Thu, 29 Jan 2015 09:13:52 +0100 Message-ID: <87egqe0zsv.fsf@mm.st> References: <87386umg10.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9017516120063928434==" X-Trace: ger.gmane.org 1422545066 26904 80.91.229.3 (29 Jan 2015 15:24:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2015 15:24:26 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Lars Ingebrigtsen Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jan 29 16:24:26 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGqxE-0006nw-47 for gegu-info-gnus-english@m.gmane.org; Thu, 29 Jan 2015 16:24:24 +0100 Original-Received: from localhost ([::1]:60326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGqxD-0004Iq-H1 for gegu-info-gnus-english@m.gmane.org; Thu, 29 Jan 2015 10:24:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGkEm-0005ZH-Hl for info-gnus-english@gnu.org; Thu, 29 Jan 2015 03:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGkEh-0004qd-Fc for info-gnus-english@gnu.org; Thu, 29 Jan 2015 03:14:04 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGkEh-0004qU-B3 for info-gnus-english@gnu.org; Thu, 29 Jan 2015 03:13:59 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 27CB320835; Thu, 29 Jan 2015 03:13:57 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 29 Jan 2015 03:13:57 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=t5bWNUKvHe16h9aH7X5fOW0onTc=; b=aGvCAcqCeCguYYhDkgu8 BijikxBQrrMyvDktAzMEARGAef7opK3pdGisMSWGQzaPDbxt17SuCwK/OC8WjY1E ittaFFIweTD01dUYTRl7+ZMCjdR3ywWR0R5HC6N3bumsPZOFmJD36OTnQntEFm88 HnOrc4zrnSX+SWKTz2/zAZM= X-Sasl-enc: ADwj/GBQjhSLMNUGJiihx/kwjZR2lt7JtWK0lwxpwnHo 1422519236 Original-Received: from kiwiarch (unknown [84.210.14.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 7782A680173; Thu, 29 Jan 2015 03:13:56 -0500 (EST) In-Reply-To: <87386umg10.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Thu, 29 Jan 2015 14:17:47 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 X-Mailman-Approved-At: Thu, 29 Jan 2015 10:24:21 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17403 Archived-At: --===============9017516120063928434== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen writes: > Kevin Brubeck Unhammer 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 # For articles where it returns early, current-buffer is # (Why does gnus-rescale-image need a current-buffer window anyway?) =2D-=20 Kevin Brubeck Unhammer GPG: 0x766AC60C --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUyevAAAoJEHQmBt52asYM7LwIANfPHQJQHcs3bFpUAnog67EK bDT33+nehgaDyH1ECH1gcqyvxOY+0F+taUF4BY7Mvn9f2cirUGck8RTezJosJZ6A cgjPU/SdoQhsCA0psboKwokNMNUEcWPPWne9Y0dr01c14C+UYwIttbvNgcsXnEch EA/Co7/ZkuriMBYkLGV8aA8pVffHajQ9dT8KRqbid5WhjkUWAguaAXsyLMRfY2Tf 84Y+g65whgGxlCvARI/KHCQ40ECz5PK1nxUWUhozGONpXQjKjOa9sPSEVOSZjxeY XqmaMfhVQehhdG6D23dxyeQRbFLNXgIjDfhFRYeA8C/jce19XphRcFYNwFKFcA0= =KZaG -----END PGP SIGNATURE----- --=-=-=-- --===============9017516120063928434== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline