GNU bug report logs - #44172
28.0.50; Exporting image data

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lars Ingebrigtsen <larsi@HIDDEN>; merged with #49347; dated Fri, 23 Oct 2020 11:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 6 Nov 2021 00:38:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 20:38:36 2021
Received: from localhost ([127.0.0.1]:47751 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mj9j9-0007EI-Qg
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 20:38:36 -0400
Received: from quimby.gnus.org ([95.216.78.240]:45490)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1mj9j8-0007E3-9P; Fri, 05 Nov 2021 20:38:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=/abvF1m7NfjBpVH7srPR4OLcFVG8sn9L0Jy7c1lyl8w=; b=AG5UclXUWNbHUXiIkhsva2Pw76
 nQDqJC2+fpcLZeUBDommnQ4JlNEHijjIuhDd4rfPHviaYcO7d9K2c3L8D6kW3pn6nUk6cjnJYdstt
 0TYqWuk4nYXMM5hpZsLTcF17d0X3jD7z5ZCjtRRQ7rvq0D2COjLOnFtweIZ9ktuwN3AQ=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mj9iz-0001EV-RP; Sat, 06 Nov 2021 01:38:28 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#49347: image-save not working as expected for transformed
 image saving!
References: <87mu0dgpgv.fsf@HIDDEN>
 <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
 <87lf29ns9v.fsf@HIDDEN>
 <CADwFkmmwbwRr+5f8SxvjAOR+rZaE2+q7QJiVGRsHiKrW9GUbnA@HIDDEN>
 <87cznlmc9k.fsf@HIDDEN>
 <CADwFkmmeMJsOMqp3kDwBZE5C7s3V1n5+TsGm8BdDy5zkBr4LAA@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX6y7bxjHTcJyP7
 y7X///+D+PafAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+ULBgAlF7PGG3wAAAGUSURBVDjLjZNbesQg
 CIWxbEBkA9VsAMP+99aD0Vxmpl/rS6K/XDwAUWmt1VpbKUVqbI5FVGqRY+H7ACIwwFnwO8DWx5J3
 IOp0/MjD1bg2ji09gq//+gLax/VPUNVXYg9QDclxeQPjfJE70AOYlyfIMs6pW3+AmvIBWOPsAqo0
 V4p3XqBnp9AyTPgGNmFzRGcn60jsBJKdjd0NPOX9At0sXLEbLkg6QRXG1QgNV/B1gk0dhBhBYJKs
 LKAWrhi1ItzgGyA3G41BYWl7gCihYWtcIUhGDKIBtgOw9VwEgkQSfVrAgTOVNKT0BRoYRUz5Qnr9
 BXBnkh223S4gfwK4+pYRfJ/v2IgTE5RoGVnpBRA8OdJNmpQt46kLQA7PLsYSAqMfliTYmHJH40Na
 Jj3V1QxRo7SM2Mw3oLgHf1AejlK/6oEUUdWoOUi/Sot3GR9dEp7OZiiN43yUFjH62T7ScsgYFpbM
 v25gi2qP9tGUV4sWgBaBjy6R1dR1yjVXz3MM6hxum80uac35y0DxL6P2YQZjaL3P/Q/JWHHnimfg
 0AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMS0wNlQwMDozNzoyMyswMDowMPJTsFAAAAAldEVY
 dGRhdGU6bW9kaWZ5ADIwMjEtMTEtMDZUMDA6Mzc6MjMrMDA6MDCDDgjsAAAAAElFTkSuQmCC
X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (1)_:
 "Outer Bongolia"
Date: Sat, 06 Nov 2021 01:38:25 +0100
In-Reply-To: <CADwFkmmeMJsOMqp3kDwBZE5C7s3V1n5+TsGm8BdDy5zkBr4LAA@HIDDEN>
 (Stefan Kangas's message of "Fri, 5 Nov 2021 06:57:48 -0700")
Message-ID: <87ee7udsou.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefan@HIDDEN> writes: > Lars Ingebrigtsen
 <larsi@HIDDEN> writes: > >> Oh, `image-save'! No, that can't be deprecated.
 > > Maybe we should remove the key binding from `image-mode' though? > Or
 is it useful in `image-mode' [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44172
Cc: 49347 <at> debbugs.gnu.org, 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> writes:

> Lars Ingebrigtsen <larsi@HIDDEN> writes:
>
>> Oh, `image-save'!  No, that can't be deprecated.
>
> Maybe we should remove the key binding from `image-mode' though?
> Or is it useful in `image-mode' buffers?

It's not very useful in `image-mode' buffers, but it's nice for
consistency, perhaps?  I think whenever you see an image in Emacs, you
should be able to interact with it that way.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 5 Nov 2021 13:57:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 09:57:56 2021
Received: from localhost ([127.0.0.1]:46692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mizjA-0007Bg-NQ
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 09:57:56 -0400
Received: from mail-pl1-f178.google.com ([209.85.214.178]:36609)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>)
 id 1mizj8-0007BM-O3; Fri, 05 Nov 2021 09:57:55 -0400
Received: by mail-pl1-f178.google.com with SMTP id u11so11148865plf.3;
 Fri, 05 Nov 2021 06:57:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:in-reply-to:references:user-agent
 :mime-version:date:message-id:subject:to:cc;
 bh=j8PfZwF8lJ8QdwywWUuJGsGGutw4PwqwsravjCJixsg=;
 b=JLwSqA2XEsZbzbkhWT8RZB08aRq1pCkW8kC27KJccV37pJArqdnVcx8DzmKubOpwUN
 5Egu5WjuFx9OYAAhreZL13q92nbJoz7Az2ymOZnuVNjQTy6ZA4COmmwCv+JCJk3z5OcU
 YNhd+U8Omk35KxpLRZmlIbw4hqzYaSLn54AvXudYdmVphvVFfR24ajmAwaELApkbsFIT
 82CfHUi5sKCljRhBMbCQfIqJqVYlI3qGjR/DtovxAGgh0fqc2x8TWlkF5fZO6pOEb9ri
 Sm525Np+t8nk8inY41GlZgvWQbiJqhLGCB7+XRIsouJl97bYfJfZ5p06XF9/Km0f06NO
 y1fA==
X-Gm-Message-State: AOAM530yty0bSpAh6EONgCGynFiGrVzj7ppK1LMCUKhMNIdpB9MCQi7w
 GwkUPzLEC1h9YfHL8gtP7xCjndNjjQimM70J2RY=
X-Google-Smtp-Source: ABdhPJwR65uftW5aFcJUE/mW0ll5G5m8SLQH7mWCQ7uQ5Rpz0ISzTI+Yf6WbpyWDRZMDvzDu67Wi2cDnpwj2J9xwLqA=
X-Received: by 2002:a17:90a:be10:: with SMTP id
 a16mr29636257pjs.133.1636120668847; 
 Fri, 05 Nov 2021 06:57:48 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 5 Nov 2021 06:57:48 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <87cznlmc9k.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun,
 31 Oct 2021 16:42:31 +0100")
References: <87mu0dgpgv.fsf@HIDDEN>
 <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
 <87lf29ns9v.fsf@HIDDEN>
 <CADwFkmmwbwRr+5f8SxvjAOR+rZaE2+q7QJiVGRsHiKrW9GUbnA@HIDDEN>
 <87cznlmc9k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Fri, 5 Nov 2021 06:57:48 -0700
Message-ID: <CADwFkmmeMJsOMqp3kDwBZE5C7s3V1n5+TsGm8BdDy5zkBr4LAA@HIDDEN>
Subject: Re: bug#49347: image-save not working as expected for transformed
 image saving!
To: Lars Ingebrigtsen <larsi@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 44172
Cc: 49347 <at> debbugs.gnu.org, 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Oh, `image-save'!  No, that can't be deprecated.

Maybe we should remove the key binding from `image-mode' though?
Or is it useful in `image-mode' buffers?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 31 Oct 2021 15:42:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 31 11:42:42 2021
Received: from localhost ([127.0.0.1]:32915 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mhCyn-00029r-R9
	for submit <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:42:41 -0400
Received: from quimby.gnus.org ([95.216.78.240]:40198)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mhCym-00029e-Kb
 for 44172 <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:42:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=gNcGYizlKzLmGzL95OxonkRBBzdButFR8+R67ykTJT4=; b=Mii9A4EhJ8on7k1bHCeWVdqJby
 2k4A7obfKsxfT0EEVGsHlqMs1Suga+YROXUxQGscs9DGlOVWhMcTNnSCcvDDWQvxCx4Qbm7elDLJj
 btIEMnAMrjraQGVadVpMNysIQ/8572923VJseCZYLaJQboJhXTTt+vjrTiV//JxTQsHI=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mhCyd-0004eG-VE; Sun, 31 Oct 2021 16:42:34 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
References: <87mu0dgpgv.fsf@HIDDEN>
 <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
 <87lf29ns9v.fsf@HIDDEN>
 <CADwFkmmwbwRr+5f8SxvjAOR+rZaE2+q7QJiVGRsHiKrW9GUbnA@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXSzp+1qGN7dVH/
 //+kzLsMAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UKHw8jOFVg9zsAAAFRSURBVCjPZZJNasMwFISf
 QFp0p4Ickp7mGaS9XDSGZO9FfIoeIS240GWhLTSn7Eixs6kXQp/e34xkEX5BbJCQtO7FivViS9uL
 abDfwAXPzDvIfkszdpLQoGOEu1gyYWgHK6htqVrYcQUnraYNNuhzA2XrnqA899HIQ49MiFG8sYRS
 VJKVwDRMgFbJDfAfqFdMhS5WkAajU4o3dSSQaKNboTiqQjBKSBtEAY420AYKgfWBumUoJnX6iHZr
 2dZWQKwGMqsjpuyqL0ZSwrkYrED50ufc0hKWLL3SXLZuAbIZcWHEVZEvXL42yA7LdxHfoce77kYs
 4O2x66K7D/9KMKFng8NxunQV0riUA+brsQ7qxoXBeSHAPzEtzQMfwMCjDj193qHo+KayQXbPDbR6
 s1ItyA3Ut/drMOUgvj60noAz7O2P0ANtj6jjebtdmn9/rijDH4BFYqGdVsHyAAAAJXRFWHRkYXRl
 OmNyZWF0ZQAyMDIxLTEwLTMxVDE1OjM1OjU2KzAwOjAwV/o3HwAAACV0RVh0ZGF0ZTptb2RpZnkA
 MjAyMS0xMC0zMVQxNTozNTo1NiswMDowMCanj6MAAAAASUVORK5CYII=
X-Now-Playing: Oval's _Wohnton_: "Nochgestern"
Date: Sun, 31 Oct 2021 16:42:31 +0100
In-Reply-To: <CADwFkmmwbwRr+5f8SxvjAOR+rZaE2+q7QJiVGRsHiKrW9GUbnA@HIDDEN>
 (Stefan Kangas's message of "Sun, 31 Oct 2021 08:39:03 -0700")
Message-ID: <87cznlmc9k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefan@HIDDEN> writes: >>> In the
 short-term, 
 I think `image-mode' should stop pretending it can >>> edit images by making
 `image-save' into an obsolete alias for >>> `write-file'. >> >> Yup. > >
 Oops, this doesn't actually [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> writes:

>>> In the short-term, I think `image-mode' should stop pretending it can
>>> edit images by making `image-save' into an obsolete alias for
>>> `write-file'.
>>
>> Yup.
>
> Oops, this doesn't actually work though, does it?  For example,
> `image-save' is also what gives us a command to save images in eww.

Oh, `image-save'!  No, that can't be deprecated.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 31 Oct 2021 15:39:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 31 11:39:12 2021
Received: from localhost ([127.0.0.1]:32899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mhCvP-00024B-PP
	for submit <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:39:11 -0400
Received: from mail-pj1-f44.google.com ([209.85.216.44]:53014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1mhCvO-00023z-6P
 for 44172 <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:39:10 -0400
Received: by mail-pj1-f44.google.com with SMTP id oa4so10531308pjb.2
 for <44172 <at> debbugs.gnu.org>; Sun, 31 Oct 2021 08:39:10 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:in-reply-to:references:mime-version:date
 :message-id:subject:to:cc;
 bh=ssXgJLDfrK7uLmu5WQgMzs5AekExomknZyljYKWC30I=;
 b=Mvp73vZ6a+81zZMVqemD6uXn6DKa0z3YsFHFM+wKRzJaCflkvXSpiMgJVlqATrETfa
 DsM/rxadUlWJ+T8+vbUzPONFX8aPyYENQLdwasjZjfeayK6DRhOGkbsQ8skboyDf5L2I
 46/OIw3WjFW1wPhkMbSj2kHpy7arqxwbzLVhl9EUhTqqybrYqdWvW46h2WyLlYBJLGan
 P5bnHXOZjkm2mnK3ZA1+RnqYPlhaJo2DXcKJqU8TWSAAwq3yCPBY7ReUOUBshM7QSJPY
 WM7eWCiMe2GzLXsmvh0MuTXvoVzWV6ZxlAH2MF8KU990iVlTf/Sa/hTAiN5gATxGWCk1
 AcwQ==
X-Gm-Message-State: AOAM530CKatk42eHVuJmexqX+QL+FBYSoEdFA+yrymmf07DbdiZjgcA8
 h+bF3KkWeB/QE2vOhZ1hnHw2TXTZRj8SdPLVSAU=
X-Google-Smtp-Source: ABdhPJwX8+h3ErKGt2yU4yqcT3eqtT4mSCC/nDMj9G5Qm2HrGullLAoZfLY/11WSkBGlM+uPMwhO0on5CeP0ouAhjIc=
X-Received: by 2002:a17:90b:3b86:: with SMTP id
 pc6mr31984432pjb.143.1635694744384; 
 Sun, 31 Oct 2021 08:39:04 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 31 Oct 2021 08:39:03 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <87lf29ns9v.fsf@HIDDEN>
References: <87mu0dgpgv.fsf@HIDDEN>
 <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
 <87lf29ns9v.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sun, 31 Oct 2021 08:39:03 -0700
Message-ID: <CADwFkmmwbwRr+5f8SxvjAOR+rZaE2+q7QJiVGRsHiKrW9GUbnA@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
To: Lars Ingebrigtsen <larsi@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Stefan Kangas <stefan@HIDDEN> writes:
>
>> In the short-term, I think `image-mode' should stop pretending it can
>> edit images by making `image-save' into an obsolete alias for
>> `write-file'.
>
> Yup.

Oops, this doesn't actually work though, does it?  For example,
`image-save' is also what gives us a command to save images in eww.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 31 Oct 2021 15:11:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 31 11:11:36 2021
Received: from localhost ([127.0.0.1]:32815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mhCUi-0007aC-1K
	for submit <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:11:36 -0400
Received: from quimby.gnus.org ([95.216.78.240]:39510)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mhCUg-0007a0-Ag
 for 44172 <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:11:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=vyo/49ajzA20V6fprnfuFbC1kx6JuLNEEzF0AZ1VVIY=; b=sUSisU+ItksNRerPZt2CwGTAg6
 lJu1mgtO1+nrx03rW3VR022Jlj9p7yEBpnP3EHvVtDuXQNxq86JQkKv8lyaC6dhJ/34B4cjph0AAk
 +kOUj1XNFGGq7JrWaKNa3i3g5z2s2RQijwOShq4YnBqEkkaN3VZ6G1IF/c98D3X8cdTY=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mhCUX-0004G6-2i; Sun, 31 Oct 2021 16:11:28 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
References: <87mu0dgpgv.fsf@HIDDEN>
 <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEU8Y0FJhztjl1Jo
 mlKDqW6mwZH///+tjQ/pAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UKHw4lKvFBS8IAAAGiSURBVDjL
 dZTrccQwCITlTAowuIETbiABdyBXkP6LyS6SH7m7KD/Osx+wgDQp5TwiukYVETOrlzxRiTATq3oB
 ymIOQPUClEUDx0WZ9LjiEeYrgKnqCSQBdZpUnQdIA1SgR5gD6ONMQKFlZJjKBSoTDgD01UHVKqad
 wAPfj26hHEJTd0d6TfOJBlxDejsyFhcAyV1oPZqytXz+sNDcp2ZldwvMZ4ubH+vgGixWFrKFQalr
 OkQuhM1xhR9FZraBffhq6MloZueeOJ2hMqNxKd/o9bBAee9TA/jIQF3cBa8vKsffDqAjkJeRv2iv
 ZgYuu+s04Wbon+PVcIahrwTgkYATZ8qa/lvgL0v5sUEOohZ726J35ZRpUtnUvu+RgKvt+pBbEOCe
 2MiWOSiytw4wCaoiMCKjs85GMOEp760hKtUW3a4Iy7DOCM7TAMbn6OU8HWwZvt30sARtdHJLUIKt
 7fF0XEpavZwqJd6e/8D6b4a8B3h+74FXmctLKB/TEzCZ8c5mXlG5AG5PIOaLmvh716U8gy6/gHzL
 fwA/jP8+VOUGYF/KLwhdnHdfNotSAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTMxVDE0OjM3
 OjQyKzAwOjAwtnwaKgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0zMVQxNDozNzo0MiswMDow
 MMchopYAAAAASUVORK5CYII=
X-Now-Playing: Oval's _94diskont_: "Do While (Command X)"
Date: Sun, 31 Oct 2021 16:11:24 +0100
In-Reply-To: <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
 (Stefan Kangas's message of "Sun, 31 Oct 2021 08:04:40 -0700")
Message-ID: <87lf29ns9v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefan@HIDDEN> writes: > In the short-term,
 I think `image-mode' should stop pretending it can > edit images by making
 `image-save' into an obsolete alias for > `write-file'. Yup. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> writes:

> In the short-term, I think `image-mode' should stop pretending it can
> edit images by making `image-save' into an obsolete alias for
> `write-file'.

Yup.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 31 Oct 2021 15:04:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 31 11:04:49 2021
Received: from localhost ([127.0.0.1]:32802 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mhCO8-0007Pf-QX
	for submit <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:04:48 -0400
Received: from mail-pj1-f51.google.com ([209.85.216.51]:43959)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1mhCO6-0007PT-Re
 for 44172 <at> debbugs.gnu.org; Sun, 31 Oct 2021 11:04:47 -0400
Received: by mail-pj1-f51.google.com with SMTP id
 k2-20020a17090ac50200b001a218b956aaso10729569pjt.2
 for <44172 <at> debbugs.gnu.org>; Sun, 31 Oct 2021 08:04:46 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:in-reply-to:references:user-agent
 :mime-version:date:message-id:subject:to:cc;
 bh=6uKxBDDPUqrJZyjrVYew24nPHX1Z8g9nWW3+upTH/fA=;
 b=BOjizl+qvkaNUUQVkI3yfabrFDyl3acVrMlyBH4Svc3MNO9nvfjtoDg+9Bw8Givt8N
 9gFq4NIJQk4k0B3igj6bCgWTgTfwHvYTz7OJphjNSTIZpf7opGHQEfdgqTGOwDIS1bqR
 wH4cIpWs2cAx3Zm8fjdakr7AzP1swnjyVVhqPXaWFtvnrH68SF5TH+Q8fYHyQDU4Pmzg
 akdjdx8kP80ubf2unQUTpPkbRsueE8RBuzoJ8HlNdZn6W/suLEDX4fpD0Pqq0EUaHdXv
 qJJDzKj41GHdRjRFhUNaw9s0hR88OyrEQi5a3jt7ynZspqdDWZtJr2Q4WC3FcgiTO7kB
 HN3g==
X-Gm-Message-State: AOAM532EzbprWiAVNhkuTMjcxjLeGrkvkDff4x+OuFDV4CFvn1F4gz7l
 V3ykakSRP/ML4dONHDADYk8YBpHRmOYBCpffX2c=
X-Google-Smtp-Source: ABdhPJzPIYF3KY5RqfTTBhMt/ZDqjWNbKw6OJplsF81AHqO1Np7M9wETChcHQR75/fX5MgqY9xDFKus2FFKG0WiQCW8=
X-Received: by 2002:a17:90a:be10:: with SMTP id
 a16mr21818292pjs.133.1635692681227; 
 Sun, 31 Oct 2021 08:04:41 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 31 Oct 2021 08:04:40 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <87mu0dgpgv.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 23 Oct 2020 13:18:40 +0200")
References: <87mu0dgpgv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Sun, 31 Oct 2021 08:04:40 -0700
Message-ID: <CADwFkm=VCDT92k9jS=sgjYbR1yim0oNb-zi7S6oD5uTKD-Pw=A@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
To: Lars Ingebrigtsen <larsi@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> There's been some discussion off-list about adding simple image
> manipulation functions to Emacs, and there's really only three
> transforms that are in scope for Emacs: Cropping, rotating and resizing.

I think we should have a special `image-edit-mode' to support this.  We
could have a keybinding to go to between that mode and `image-mode' (say
`C-x C-q').

In the short-term, I think `image-mode' should stop pretending it can
edit images by making `image-save' into an obsolete alias for
`write-file'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.
Forcibly Merged 44172 49347. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 24 Oct 2020 19:51:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 24 15:51:17 2020
Received: from localhost ([127.0.0.1]:35208 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kWPZN-0002bF-8c
	for submit <at> debbugs.gnu.org; Sat, 24 Oct 2020 15:51:17 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kWPZL-0002b3-NT
 for 44172 <at> debbugs.gnu.org; Sat, 24 Oct 2020 15:51:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=W4LI347L7i0en+QLk8LP8eflz3+n7c9vopiMCIUR9ow=; b=aUZlWV+hAxa0wpu6NW8ReWdbnq
 pYUpJ6/9Jp6lQ0CD80x6NzjguclqPt9fuY/hSongEvFtXABzFMHH/qt6aEgFK3h10fduYy6q28w/K
 XC9dIl9UGhlNsLfWYaFwBTwlmnIKYS8c7Z+FzUOmsxJCcvEyy7vCGMqL7LLaKQhz5tIk=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kWPZD-0007Xt-95; Sat, 24 Oct 2020 21:51:09 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
References: <87mu0dgpgv.fsf@HIDDEN>
 <20201023162419.GB59267@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEX27tn1797QxrqU
 jImKgX2Ee3hvZ2crJihDOz5STE3////GrS5UAAAAAWJLR0QKaND0VgAAAAd0SU1FB+QKGBMgGAaU
 NTgAAAGDSURBVDjLjZJNboMwEIWHngBu0B+p6wiSqnvMCQBL3VbCiS8Qc4IwbFsJ4dt2xoZgKpDy
 pAR437w3TgRAoDiZFcNa0Z0kPLdJ1j4pSPxTAnEUbYJoIxEuj+KNBQ5s++uq5KHEQ1XRHoA9ED90
 qp0VCbxuCyDbEWTiWAlRnYQQayCKmiT4K8tDQEaZvmWn2qnKsqOYElVRHN6NB1VVZ0VZHfPcJeQh
 6mQtG7ptHC+LPAdyVPqMUqmmljzFgD6U+BrSJzPcmg9FUEpO0YFAKTneZI8ezGoaAmfjpIcAqHoB
 l2sIOHFx/nWdUAS0tdbYtT0DvQU0gQsBrelRh4CabGudtF2AVtYqjeTey/R9hwfBGjohWK4ae1+l
 iE0DQFupGz0Yp+vAwNIDTolABHrX1c/TC2DNiXEB2HLVenqgE8DIJvo/2NCuuRFoumsR0bTLCbTu
 ezDkYI/+sGhH85PSG5qewfpfyBlXNn6z//IJnYuw76oQf+ltK/MLA9N2OC9A0/FtZ/4A7BBH78of
 cLkAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAtMjRUMTk6MzI6MjQrMDA6MDBYEf84AAAAJXRF
 WHRkYXRlOm1vZGlmeQAyMDIwLTEwLTI0VDE5OjMyOjI0KzAwOjAwKUxHhAAAAABJRU5ErkJggg==
X-Now-Playing: Contriva's _If you had stayed..._: "after work club"
Date: Sat, 24 Oct 2020 21:51:05 +0200
In-Reply-To: <20201023162419.GB59267@HIDDEN> (Alan Third's
 message of "Fri, 23 Oct 2020 17:24:19 +0100")
Message-ID: <87mu0bcsie.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Alan Third <alan@HIDDEN> writes: > Are you talking about
 using an image spec that we use to display > images, which can already include
 rotation and resizing? Yes. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

> Are you talking about using an image spec that we use to display
> images, which can already include rotation and resizing?

Yes.

> That would be difficult because the stored image data doesn't have
> those transformations applied, unless you're using imagemagick. We'd
> have to draw it to a buffer (either on-screen or off) and then read
> back that data.

But it's the untransformed data that we'd want here, so that sounds
great to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 23 Oct 2020 16:24:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 23 12:24:33 2020
Received: from localhost ([127.0.0.1]:58069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kVzrl-00070R-8q
	for submit <at> debbugs.gnu.org; Fri, 23 Oct 2020 12:24:33 -0400
Received: from wilbur.contactoffice.com ([212.3.242.68]:42888)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1kVzri-000708-Eu
 for 44172 <at> debbugs.gnu.org; Fri, 23 Oct 2020 12:24:32 -0400
Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24])
 by wilbur.contactoffice.com (Postfix) with ESMTP id EAFC960E;
 Fri, 23 Oct 2020 18:24:23 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1603470263; 
 s=20200222-6h9o; d=idiocy.org; i=alan@HIDDEN;
 h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To;
 l=1225; bh=HtI0ALNeSXavXGmpY3GwbQAD36HxqtO2iYXJ/8gYBF0=;
 b=W9GVi3tqMOubMWGqMVLoIhFmnbkY4ax5BvauLxayQoPF1mk/9ygLkF8SXr0AGmh2
 adG1GMBfE11VQWgsEyyFPduNaHdNZxsVVz25JS+TneX2XARJN5c1VRMREuYTUL7hjX5
 WP8GF2CE0BltoicHS9DY2qxkhWa1Q5XO1Bx91qZ0OH4QqXXYv3MIepJ45uBbiI+1X9a
 JzzXnhJ92ByKNVEpsFshE4r1vq5M4asQCu1dm1ryUPTA1o2GMubwvBlhfcT+zEUi8r8
 rwVq46g8Nyfn8hd+VJQmhdBKuglo/XYU7m9nlHga/QNNoNNLQJkcUr/A8R/gNySKQX4
 kO7kiFmMGw==
Received: by smtp.mailfence.com with ESMTPA ;
 Fri, 23 Oct 2020 18:24:20 +0200 (CEST)
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
 id 4BF1A202630F06; Fri, 23 Oct 2020 17:24:19 +0100 (BST)
Date: Fri, 23 Oct 2020 17:24:19 +0100
From: Alan Third <alan@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
Message-ID: <20201023162419.GB59267@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Lars Ingebrigtsen <larsi@HIDDEN>, 44172 <at> debbugs.gnu.org
References: <87mu0dgpgv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87mu0dgpgv.fsf@HIDDEN>
X-Spam-Flag: NO
X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED,
 BAYES_00 device=10.2.0.1
X-ContactOffice-Account: com:241649512
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Fri, Oct 23, 2020 at 01:18:40PM +0200, Lars Ingebrigtsen wrote:
> 
> 1) Making image data available to Emacs Lisp.
> 
> This is something that I've often wanted for other reasons -- I want to
> know how an SVG was rendered, for instance (especially when doing
> font-based stuff), and there's no way to actually tell.
> 
> So I think Emacs should have a function like
> 
> (export-image-data IMAGE &rest SPECS)
> 
> that will just take the image cache data for IMAGE (or the frame
> specified by SPECS, if multi-frame) and dump the RGB(A) data into the
> current buffer (which should be unibyte, for efficiency), and return
> a plist of width/height/bytes-per-pixel/rgb(a) ordering.  This is
> basically the PPM binary format, but without the heading.
> 
> This allows us to do easy transforms like cropping and rotating from
> Lisp, too.

Are you talking about using an image spec that we use to display
images, which can already include rotation and resizing?

That would be difficult because the stored image data doesn't have
those transformations applied, unless you're using imagemagick. We'd
have to draw it to a buffer (either on-screen or off) and then read
back that data.

-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 23 Oct 2020 11:50:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 23 07:50:01 2020
Received: from localhost ([127.0.0.1]:56175 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kVva4-0005mN-Pc
	for submit <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:50:01 -0400
Received: from quimby.gnus.org ([95.216.78.240]:54576)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kVva2-0005m5-Fn
 for 44172 <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:49:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=85d+pYUkVukF5fdroKkLt6XJmceaPCrRVS6wLB5nZqQ=; b=JNZdrP0FCaMO2LgJKgkFOYG1Du
 UFxdZjzGpEJ94/Qx5E3o1FWQAQbrDlAOeuw6H0Vh23vy9EwWua6ekWvcShujE0w9xMLE9KRgoUThv
 LNRV6w35JIdg3m+D+wwSE98CjyAQgPIU6JXf7PKBdsJF+/D1SDbhHG0QTVrs5ZY2Kfug=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kVvZu-0000S8-7s; Fri, 23 Oct 2020 13:49:52 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#44172: 28.0.50; Exporting image data
References: <87mu0dgpgv.fsf@HIDDEN> <83a6wdjhco.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEX18+zo5dvh3dLZ
 1cqmoZbLxrvAu7AvKCFkXVVDPDVJQjqKhXuCfHP///8XYhd7AAAAAWJLR0QN9rRh9QAAAAd0SU1F
 B+QKFwsTGyGg4ywAAAGbSURBVDjLfZSxTsMwEIZtxMZiO30Bp2JjaBKhrh2CqBhpYa4ESAxMMCTp
 XEiLGJHaZkYyRSxsQSxslLfCdtLknKTc4Dj+cv+dz+cgJA0ThKia6AFT/Sje9VodYNwElBRqkkKG
 VMVgcBMQtaQ0KSVQhG5ojhvAPx5GDLIFbPXYDrhK1yZG6ZQxl2PK2hobgKqP9YB2OEy35Q/9K9+/
 GHbKkmrrBvHyNRCP89tKDbsz0U9m4iv8qIOXYCZ68XcVxOIy+BRH67sqCMRzcDxfRNUYB0/9h/Q6
 vU97Zla4tZyEJ+vfyWpkOuC9aBHGqygKOxWwGy7G8Ti8CYnZEhIkiQSpBLpWuJSKgrdlg1Qrmfbf
 pz8TMcpOoDDrfMB42+PyqOQI4lhnrs0tz6EI7w8gYHKNMumB8OHAIQC4fHO0UgoA6qq70Fa7sE7p
 RkpOaNEM2HKKrEjel1kbMBd2Ay273XJhVtDDgx5Zz2TAhjtnTunBQYVxlpWOwWCtMIyhAG0KbsOs
 stPRGqx+1XB+nSGAfwO4nt9zUgfaH9uoiPQHHR1Rs3csTsoAAAAldEVYdGRhdGU6Y3JlYXRlADIw
 MjAtMTAtMjNUMTE6MTk6MjcrMDA6MDBuj4yLAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTIz
 VDExOjE5OjI3KzAwOjAwH9I0NwAAAABJRU5ErkJggg==
X-Now-Playing: Ossia's _Devil's Dance_: "(untitled)"
Date: Fri, 23 Oct 2020 13:49:49 +0200
In-Reply-To: <83a6wdjhco.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 23 Oct
 2020 14:45:43 +0300")
Message-ID: <87tuulf9gi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: > Doesn't svg.el come
 close enough? Not really -- if you have an image you've cropped, you can
 certainly write it out as .svg, but it'd be huge. Then PPM would be preferable.
 But neither are much good, in general. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Doesn't svg.el come close enough?

Not really -- if you have an image you've cropped, you can certainly
write it out as .svg, but it'd be huge.  Then PPM would be preferable.
But neither are much good, in general.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at 44172 <at> debbugs.gnu.org:


Received: (at 44172) by debbugs.gnu.org; 23 Oct 2020 11:46:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 23 07:46:07 2020
Received: from localhost ([127.0.0.1]:56153 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kVvWJ-0004aI-2S
	for submit <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:46:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56986)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kVvWH-0004St-35
 for 44172 <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:46:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45219)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1kVvWB-0004CB-OH; Fri, 23 Oct 2020 07:45:59 -0400
Received: from [176.228.60.248] (port=2112 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1kVvW9-0005aK-NT; Fri, 23 Oct 2020 07:45:59 -0400
Date: Fri, 23 Oct 2020 14:45:43 +0300
Message-Id: <83a6wdjhco.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87mu0dgpgv.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 23 Oct 2020 13:18:40 +0200)
Subject: Re: bug#44172: 28.0.50; Exporting image data
References: <87mu0dgpgv.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44172
Cc: 44172 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Fri, 23 Oct 2020 13:18:40 +0200
> 
> 2) Create image files.

Doesn't svg.el come close enough?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2020 11:18:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 23 07:18:54 2020
Received: from localhost ([127.0.0.1]:55539 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kVv5x-0000Uu-PW
	for submit <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:18:54 -0400
Received: from lists.gnu.org ([209.51.188.17]:59104)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kVv5u-0000Uk-7J
 for submit <at> debbugs.gnu.org; Fri, 23 Oct 2020 07:18:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51368)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1kVv5t-0004lD-WF
 for bug-gnu-emacs@HIDDEN; Fri, 23 Oct 2020 07:18:50 -0400
Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:43678)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1kVv5q-00085m-Or
 for bug-gnu-emacs@HIDDEN; Fri, 23 Oct 2020 07:18:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:
 Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=hR9BUMSNMB962SYVBYYQQMP4maPj87RtVpRYWxRpKXg=; b=fDptH+IxzQSujDjFeS1FeVE3WF
 LlRAmOiSqMSEXTBYeLc+uehtRYYAgcIA8jINzJsBaXi1bxbsxFH7XjW3sHk6bx0HMN7IzaFAMxzhu
 T1HqceC9E+IDx5Q3ryr35i5p/y9/vihDmp6EguYGpUDJFZkoYJHLTkmu/BOxVr891t4E=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1kVv5l-00009O-O0
 for bug-gnu-emacs@HIDDEN; Fri, 23 Oct 2020 13:18:44 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Exporting image data
X-Now-Playing: Ossia's _Devil's Dance_: "(untitled)"
Date: Fri, 23 Oct 2020 13:18:40 +0200
Message-ID: <87mu0dgpgv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  There's been some discussion off-list about adding simple
 image manipulation functions to Emacs, and there's really only three transforms
 that are in scope for Emacs: Cropping, rotating and resizing. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@HIDDEN;
 helo=quimby.gnus.org
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


There's been some discussion off-list about adding simple image
manipulation functions to Emacs, and there's really only three
transforms that are in scope for Emacs: Cropping, rotating and resizing.

Now, there are packages out there that allow doing this, but they rely
on external programs to actually do the image wrangling.  I wondered
what it would take to make it possible to do this in-Emacs, and I think
we basically have all the needed stuff -- we just need to hook it up and
make it available.

1) Making image data available to Emacs Lisp.

This is something that I've often wanted for other reasons -- I want to
know how an SVG was rendered, for instance (especially when doing
font-based stuff), and there's no way to actually tell.

So I think Emacs should have a function like

(export-image-data IMAGE &rest SPECS)

that will just take the image cache data for IMAGE (or the frame
specified by SPECS, if multi-frame) and dump the RGB(A) data into the
current buffer (which should be unibyte, for efficiency), and return
a plist of width/height/bytes-per-pixel/rgb(a) ordering.  This is
basically the PPM binary format, but without the heading.

This allows us to do easy transforms like cropping and rotating from
Lisp, too.

2) Create image files.

But mogrifying images is all well and good, but if we can't save the
data, it's not much use.  Of course we could just save the data as PPM,
but that's not very helpful.  So Emacs needs to be able to write image
files...  which sounds like a big thing, but it isn't really: As long as
we can save .jpeg and .png files, that's fine.

Fortunately, Emacs links with libpng and libjpeg already, so adding a

(encode-image-data TYPE)

function is less work than it would seem.




In GNU Emacs 28.0.50 (build 124, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
 of 2020-10-22 built on xo
Repository revision: 954a4decfcc8e41084789516773b22d0adc11d91
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Acknowledgement sent to Lars Ingebrigtsen <larsi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44172; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 6 Nov 2021 00:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.