From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Image rescaling Date: Mon, 15 Sep 2014 14:45:51 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410785190 20616 80.91.229.3 (15 Sep 2014 12:46:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 12:46:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 15 14:46:21 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XTVfh-0001D0-Cs for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2014 14:46:21 +0200 Original-Received: from localhost ([::1]:59498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVfg-0003DO-Tm for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2014 08:46:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVfY-0003CQ-Gt for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:46:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTVfS-0004kB-9k for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:46:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVfS-0004jE-3T for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:46:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTVfP-00015s-Nm for emacs-devel@gnu.org; Mon, 15 Sep 2014 14:46:03 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 14:46:03 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 14:46:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEX89eC4qppQSkvs3sn+ /ev9+ub///Xf0b7///P269b+/vF7cWnQwK/+//OdkYMjIim6GsXAAAACJElEQVQ4jW2QvasTQRTF b2FA7bayCSm2XTDCFCGdxQQlVYoMGrFe1te+YhFSShgWhEAa0+c91yks0i4IqV4zvE772Aa2yB/w 4rkz+5Goh2Vm9/zuuXdmiZSSJteLODax17ckybOMqDOVY8PgNm6kNYCavvGJVslCa6KZfGXMJYgT BmrKM/QFWHArmsrLVj/zRBtDLjLO9WNYH35h+fxUGmM2FTBV6DaJ9VsBfwTwiCuytlvyzmzkyN3D 3LzWur0GJswYKHTCsepzXQFsXkpqzlsTnWGEVLRkgMxXJjwmy9hXtF7yb5Tm+xftlY2lHKkJgw5n bnLvJz4AwOPfI2Iy/ckhg0RnUrfiuxiMzXMDoHwrUjNZIRZup3DY9ZqWHZdpxP4TAEToHCn21zSs gRqxCRuDuY+oI8wmihf2VySGnrwgpw5xn5UQlF4LgZTTR7/BFindVSSFM2zAICV7l6apEG1sLcT1 IAWwlskzx1ZDt4nUgSZSC/WprRI8Z9D6c2sp6HoE6KmrtzsKAuu7nQnOHsBnGjZHHxsEtAfhUNVv zuXwAyqZ2K49030Q9PZUlmWV2VnPdz18l1SUFeri2QVesDwoe72gVa90oPhR1iFXunefBUVFUTPo UG1FQSEIdt+x/P3A1SyKtmHoMgeuPjx3bhFGFDr/H4UMWFHhhrl1ywadoPDk6TZyHpY+g2P4H/Vd 4nQ8YumjznnsVIDfjvVb6NYG/K0/m5kZZkBjMegAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: On's _Your Naked Ghost Comes Back at Night_: =?iso-8859-1?Q?=22Fa=E7ade=22?= User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:9ELtTVHwsMpdcwjuh6U7VP/Vm+Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174318 Archived-At: Most of the image format decoders (jpeg and gif, for instance) do not support image rescaling. So shr uses ImageMagick for all its image handling. There are two problems with this: 1) ImageMagick is crashy. Virtually all Emacs crashes I get happen deep in the ImageMagic code. I mean, I don't get a lot of crashes, but they happen from time to time, and are pretty annoying. 2) Some people run Emacs without ImageMagick built in, but usually have the other libraries enabled. So I would propose to add a general image scaling function, and use that in all the image handling functions. Without image rescaling, Emacs is pretty useless for anything that involves handling images. Does this sound OK to everybody? And if so, is there an FSF-copyright-assigned quality image rescaling function out there that I could adapt to Emacs so that I don't have to write it myself? >"? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no