Re: [rfc-i] Scaling SVG graphics

Martin Thomson <mt@lowentropy.net> Wed, 25 May 2022 06:29 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 4FA5FC14F722 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Tue, 24 May 2022 23:29:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1653460194; bh=1PCyozybQoxh6jVvnm3c7aGt8BSeGe69dbW1bo07Lbw=; h=In-Reply-To:References:Date:From:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=PBfQOd+0v+hOP5eLPS7jriE7ESlJkmCQgo1mrHm2bMUEs0pI7e88cYt4ZGmiRohV6 89JMkcGruh79/MDDtyIOGTeAzGZ+nmqrC0jvP6003Cr+uKIVSg8xnc7uyppGYVNfP0 WWWNfWJRLaHqFJjfu6rPu2fcs3qrnqPSYIPwfiwQ=
X-Mailbox-Line: From rfc-interest-bounces@rfc-editor.org Tue May 24 23:29:54 2022
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 20348C14F606; Tue, 24 May 2022 23:29:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1653460194; bh=1PCyozybQoxh6jVvnm3c7aGt8BSeGe69dbW1bo07Lbw=; h=In-Reply-To:References:Date:From:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=PBfQOd+0v+hOP5eLPS7jriE7ESlJkmCQgo1mrHm2bMUEs0pI7e88cYt4ZGmiRohV6 89JMkcGruh79/MDDtyIOGTeAzGZ+nmqrC0jvP6003Cr+uKIVSg8xnc7uyppGYVNfP0 WWWNfWJRLaHqFJjfu6rPu2fcs3qrnqPSYIPwfiwQ=
X-Original-To: rfc-interest@ietfa.amsl.com
Delivered-To: rfc-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B837C14F606 for <rfc-interest@ietfa.amsl.com>; Tue, 24 May 2022 23:29:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=pE6dmyX4; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=U8sd6Y/e
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n-PVikXvBfiS for <rfc-interest@ietfa.amsl.com>; Tue, 24 May 2022 23:29:48 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 836C2C14EB1E for <rfc-interest@rfc-editor.org>; Tue, 24 May 2022 23:29:48 -0700 (PDT)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 867BD5C015A; Wed, 25 May 2022 02:29:47 -0400 (EDT)
Received: from imap41 ([10.202.2.91]) by compute3.internal (MEProxy); Wed, 25 May 2022 02:29:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1653460187; x=1653546587; bh=i8lniQF14S dbeW5fdjINf/aoOB10/LQ03IrU8k3fhrI=; b=pE6dmyX4swCbh5prBMidrXv+J1 7paDDk2LX6ySeZjm1qi+6Pf7I7NLYcCvf7vhdrjtIOEz7ZVI/L1864V6JZTbGH4T MhA4huzxDjHBsPMPsl8cYn6amMl6q5SqBxhh/AAHbAl71HAfF3Wz41hLCsXLTWhb sjDBFnd4Osjk7MxD2FVPz6bH1DxnJCVy0/OfCmKfzW6+Xr15m+0+hPwGPEG3sbtT qg5YkkYSclLMZDGfIXFBOFI7LGV90WfzbZkqIKWmIyni32t7j2b+oQIyT6GoaQj5 ophfjUv/ArpNt/B9Sjur6vGfpZpafRWK1LhPi7XDojmzfOEihyf0M5tR9e3A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653460187; x=1653546587; bh=i8lniQF14SdbeW5fdjINf/aoOB10 /LQ03IrU8k3fhrI=; b=U8sd6Y/eDU0POPrONOvaWeBrycuMyuwtMW4o7MLUCQyV QTmrXNYWRiOpLydyMtE8rhgvy1Rpo40s5SAQIvU7i7KTMUOJTibQ7bRbZzBmSCRL RCQlREUzmfjqUGGoJtP7wnnnutcNi7th/rWCY9wI4WAbhjaoLf/xocJSLxcp0UPd /sfMUEG5KTplhBmO7T3WNFG2d3aR1MzdYsg2veqJ9aAbS9Ia+kdVOBXugoABFNDS GGDnQ0ShRy+vZj41H8+la9YhCU72Z+4k5kpEc9qzfCMFJFy6VwM5pxNK8iQfrgnr CuMmVkSTyW69F2sbekSpCe6yj2T2a6aowgHMyqh/jw==
X-ME-Sender: <xms:28yNYoKXLqqFhZFVH3FLqzxSNlziZ5-PjYWHEu3UOdlG57RdqSiwng> <xme:28yNYoJqwwEgOLQKEyNUYUGnH9JC47YdIAdnuw2NGqqUKRHx3ERj0_FvdLEasaTjQ a3IhoLkyHHRn4pzfRQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeeggddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdforghr thhinhcuvfhhohhmshhonhdfuceomhhtsehlohifvghnthhrohhphidrnhgvtheqnecugg ftrfgrthhtvghrnhepkeetueeikedtkeelfeekvefhkeffvedvvefgkefgleeugfdvjeej geffieegtdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:28yNYot9HTVDNNNrRybeDjdJKxIOBAI-Xdq5jHJNPaM_vlxbZ9iFVQ> <xmx:28yNYlbCYKfinK8R5BhYCyamrvu1nRvkh7Y_WPeszWWg5CCB-uscQA> <xmx:28yNYvbGVyoW2pEwKBEjv9EMKogSpVps8Qjh0GaQCzvRB9G94FyiMg> <xmx:28yNYp2r5SvPz8CSUJ0LP5nmzFvw7WlVEugDKajkS9AHtFlDKCxGaA>
Feedback-ID: ic129442d:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 41EB6234006D; Wed, 25 May 2022 02:29:47 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27
Mime-Version: 1.0
Message-Id: <735dfb17-53cb-49f0-b4cd-78d3d94773c2@beta.fastmail.com>
In-Reply-To: <b3a19504-a33c-6b34-aecd-9bf168fb4c87@gmail.com>
References: <MN2PR11MB375770AEBE5A992CC01156ACB9D79@MN2PR11MB3757.namprd11.prod.outlook.com> <A2C534F3-3162-4779-A637-BA42C5C44215@ietf.org> <MN2PR11MB37570AF809E4FA14CB3DFE3AB9D79@MN2PR11MB3757.namprd11.prod.outlook.com> <6031EEDF-C648-4492-97CC-CB0EDAB475D7@amsl.com> <a8987247-ccd9-6dfb-d89c-95245366b9b1@gmail.com> <7089978b-71d2-481f-9043-a73db2bb7304@beta.fastmail.com> <b3a19504-a33c-6b34-aecd-9bf168fb4c87@gmail.com>
Date: Wed, 25 May 2022 16:29:11 +1000
From: Martin Thomson <mt@lowentropy.net>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, rfc-interest@rfc-editor.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-interest/j5RO0cNedazNJu1Qt5apeeBzldc>
Subject: Re: [rfc-i] Scaling SVG graphics
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://mailman.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://mailman.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

On Wed, May 25, 2022, at 13:44, Brian E Carpenter wrote:
> It's the width and height attributes that break automatic scaling, so I 
> believe the complaint is justified. If a viewbox element is present, 
> the width and height elements can simply be deleted. That's one of the 
> things my fixup tool does.

This has some pretty dire consequences for how the image is rendered.  If I have a narrow image, it gets scaled up dramatically.  

I considered fixing this by padding out the viewbox to some predetermined size, but the inconsistency in renderings still makes it impossible to produce HTML (and PDF) output with any sort of predictable size.

There are vast differences in line length between renderings (the default styling >> my preferred styling), there is no predictability in how images end up scaled if you allow them to resize to the width of the column.

In other words, I think that automatic scaling is not a desirable feature.

_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://mailman.rfc-editor.org/mailman/listinfo/rfc-interest