From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: yank-media: allow users to limit image types that can be inserted Date: Thu, 31 Oct 2024 16:31:49 +0200 Message-ID: <868qu42vje.fsf@gnu.org> References: <79fc91f3-c2c3-44db-9817-595808917f26@cas.cat> <86ed5ahb08.fsf@gnu.org> <87zfnywki8.fsf@gmail.com> <86setqfnmq.fsf@gnu.org> <87frpqflv4.fsf@gmail.com> <86ikumfjri.fsf@gnu.org> <877cb2fj0c.fsf@gmail.com> <86cykufhw7.fsf@gnu.org> <3a015d0f-549a-401f-be1c-651c9dbd5d9a@cas.cat> <8634lqfcaf.fsf@gnu.org> <87ikulwsd6.fsf@gmail.com> <86o74ddzxp.fsf@gnu.org> <87msiqvkph.fsf@localhost> <86ed42bs03.fsf@gnu.org> <874j4yot7x.fsf@localhost> <861q01c3h9.fsf@gnu.org> <87wmht3n17.fsf@gmail.com> <86v7xdamck.fsf@gnu.org> <87sesh37ya.fsf@gmail.com> <86iktd8o9h.fsf@gnu.org> <87iktb171d.fsf@gmail.com> <830de500-7c21-4dad-8290-9ab0f210af97@cas.cat> <86y1243cbx.fsf@gnu.org> <358410b5-29c3-4c75-a63c-68edd123fad8@cas.cat> <86froc34kz.fsf@gnu.org> <72fa1515-e2fc-4f01-8a86-da06e4377a98@cas.cat> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30363"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: pinmacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 31 15:32:46 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t6WE9-0007hU-1L for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Oct 2024 15:32:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6WDQ-00072Q-1i; Thu, 31 Oct 2024 10:32:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6WDO-00072A-3U for emacs-devel@gnu.org; Thu, 31 Oct 2024 10:31:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6WDN-0005NA-8m; Thu, 31 Oct 2024 10:31:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5F3EUoK42ggQLE6hXN7gP4YxqFJnsoZRAhSbeCeUKkU=; b=Yk8J6FFmpeuKGfNRvqfw qjXBUvVoPoG7zlqGVXsgWHSXFk42O932rGCm+SxUcaRNf4dUNYVdJ6OwI8sy1FaRBhpQIUbDICQ5i rB87WyYTd7UU7ecp032tltq1FpQIjKC+aV9UiFRuH+8e7QVtF/FMTuWG6WlXK4MKGXtNWQyp4CHGE H7whU1Q3qh/fCLKPQTi5yfElZ4uqq44DEHwH6z9CCFQrFy/4CgXviKTgOeSVwXLAne5LX9BrxbT3C 4M/PNxnzuMMzWUmklKfFoShSRC3quQMyFEHfehAYKyaJRy3cuUUGGrMwCBNZJbqe9zkCKY23s33ul RzdEkMU2sv9O1g==; In-Reply-To: <72fa1515-e2fc-4f01-8a86-da06e4377a98@cas.cat> (message from pinmacs on Thu, 31 Oct 2024 12:51:04 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324973 Archived-At: > Date: Thu, 31 Oct 2024 12:51:04 +0100 > Cc: emacs-devel@gnu.org > From: pinmacs > > For the way I use it through orgmode the selection determines how the > file is stored. Then that is specific to Org, and is not really relevant to the issue we are discussing here. If Org cannot give a way to select the format in which the image is stored, then we'd need to consider this speciall for Org. (And still, I don't really understand why you care about the format Org uses to store an inline image.) > If I do 2 screen captures of nature [0], and I save one of them with png > and jpeg, this isĀ  what appears in my orgmode buffer: > > file:/path/to/emacs-orgmode-images/2024/2024-10-31_12-36-45_screenshot.png > file:/path/to/emacs-orgmode-images/2024/2024-10-31_12-36-59_screenshot.jpeg > > Hence, new files where saved. And that has an impact in file size, so in > [1] png takes 8 times more, because jpeg is able to compress better a > natural image [2]. JPEG compresses better, but it also loses information. So I think even in this situation, PNG is a better choice I fail to understand how the small increase in disk space could be such a serious issue nowadays. > So me as user in two different use cases of yank-media: > > - So, me in a day where I am working in IT stuff related, I might want > to just select preferred format as png if what I capture is more > synthetic, such as text, log errors, visual annotations on user interfaces. With my suggestion, you can still select JPEG, even if the default is PNG.