From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included Date: Fri, 8 Dec 2017 01:50:50 +0700 Message-ID: References: <87tvx99t3y.fsf@gmail.com> <87indo7s7o.fsf@mbork.pl> <87d13u7qvo.fsf@mbork.pl> <86shcqg2a7.fsf@zoho.com> <878teh7o8a.fsf@mbork.pl> <86bmjdd8ey.fsf@zoho.com> <86vahjgul3.fsf@zoho.com> <86vahig499.fsf@zoho.com> <871sk6oczg.fsf@delle7240.chemeng.ucl.ac.uk> <87tvx2wpxd.fsf@fastmail.fm> <87wp1ymvf7.fsf@delle7240.chemeng.ucl.ac.uk> <86mv2ufl08.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1512672703 905 195.159.176.226 (7 Dec 2017 18:51:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2017 18:51:43 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 19:51:36 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN1Gh-0008Ub-UI for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 19:51:36 +0100 Original-Received: from localhost ([::1]:33871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN1Go-0006A8-WD for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 13:51:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN1GO-0006A1-QN for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 13:51:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN1GK-0001kC-Sk for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 13:51:16 -0500 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:35556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN1GK-0001jz-Nw for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 13:51:12 -0500 Original-Received: by mail-oi0-x235.google.com with SMTP id 184so5618605oii.2 for ; Thu, 07 Dec 2017 10:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WDKzjZj3Y/bY/88nthszQx8fj5ROCk0Kqm34q3c0RPY=; b=nOmUxu166vSipBvh75MG6MGKA8xTAB/OMlGDcgSliSYicOx20xsbu+0UuHjQKCDUbO XLw++dM1v6h8GEka4RMATPufhwadV8pKKT8/kfnb0wpGFIBWtMsz3gssoTjfSI8zfhoB NWGRYqvIQ1xN6rqBh2XlAWk1GRfn/zQbKOHeAcDjvh/zG+SyPpkJWXzb1vqBiXe5x3qM 23/pzbH8d7hHHiT3xbsGqWNkSCaCIUCyQTbMrY82YlHzGLcIe5od57yYbNq3UqsEA+bP LlyIPP/6dg+J5NIQrSIWKlpbtB4mWDuaZ7xHWB6/1LvRSQPqra8Up/By836AaCjhOrcX Vjxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WDKzjZj3Y/bY/88nthszQx8fj5ROCk0Kqm34q3c0RPY=; b=hcODRw8Iv+AEQxcnapZE0SpdNJJ0Z8opXwLXJ652BkdYH0SfZJ4hI13b+mS/jDklIE sfrBxPqGF+6hMRVaPtzf/XErYzgzGmLPbzyGntTH03MpDkONc+HcdHY1oe/Ru98WUvOi sg35kOGfZIw6+WLtYhVCoW8lBUsC5tIaAXETaR9e7yGCVlqMd3XQjViX2zOKLjkF0zhd ClLLugCzSYViqVuzOozMczzZoX8DouA15sjHHUNpyvTUEms6qGtI6cAXfnTskkV1kzg0 YqNRlwMc0DwNWVE/3OolqL+AY5YFz9CZSMVM8dBbKh1ckNKEbSKBunEzrRiGXY0YGrI6 zvTQ== X-Gm-Message-State: AJaThX4Gy0ywFYy09hxJ8IeFEue2RQpKXHOJTamdb34oAy+/vD2HW4sC TyyqJuLOg165YonV7musXWjXYYp/2eMeyf+uMDA= X-Google-Smtp-Source: AGs4zMZFeGLcvLRDHe/nCGfB0G8/6tC/GUBfw+HbbEx5tZNxj4spR6oviAjCk+MoZyZyo+URM551PxJ+fZmDWffhJVA= X-Received: by 10.202.71.14 with SMTP id u14mr21209969oia.160.1512672671907; Thu, 07 Dec 2017 10:51:11 -0800 (PST) Original-Received: by 10.74.121.148 with HTTP; Thu, 7 Dec 2017 10:50:50 -0800 (PST) In-Reply-To: <86mv2ufl08.fsf@zoho.com> X-Google-Sender-Auth: KRAuCxABXLQuvwEZAIYeDPJfe7o X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115295 Archived-At: On Fri, Dec 8, 2017 at 1:31 AM, Emanuel Berg wrote: >> For HTML, use SVG instead. > > Again, what's wrong with PNG? I always used it > for both PDF and HTML. PNG is a bitmap format. Every time you export a vector drawing into PNG, it gets rasterized, most probably to a resolution 96 dpi. It looks okay on most computer monitors at 100% zoom. However, on a bigger zoom, or on a HiDPI monitor, or in print, it becomes either blurry or jaggy. The problem is somewhat less serious if you specifically generate an oversampled bitmap, at 200 dpi or higher. But you then get all the disadvantages of huge bitmap images, such as file size, decoding time, and memory consumption. > How would one convert all the PNGs into SVGs? > convert(1) ? Nohow. Rasterization is, for most intents and purposes, irreversible. If you have PNGs made from sources that are vector in nature, your best bet is to throw them away and re-generate vector graphics from your sources.