From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Resizing images Date: Tue, 31 Aug 2010 08:05:38 +0200 Message-ID: References: <201008302123.49568.tassilo@member.fsf.org> <87tymbyihs.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283234773 29514 80.91.229.12 (31 Aug 2010 06:06:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 06:06:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 31 08:06:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqJz1-0007Gm-6u for ged-emacs-devel@m.gmane.org; Tue, 31 Aug 2010 08:06:11 +0200 Original-Received: from localhost ([127.0.0.1]:50701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqJz0-0004jd-8A for ged-emacs-devel@m.gmane.org; Tue, 31 Aug 2010 02:06:10 -0400 Original-Received: from [140.186.70.92] (port=42519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqJyl-0004hq-34 for emacs-devel@gnu.org; Tue, 31 Aug 2010 02:05:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqJye-0001Ad-J1 for emacs-devel@gnu.org; Tue, 31 Aug 2010 02:05:54 -0400 Original-Received: from smtprelay-h31.telenor.se ([213.150.131.4]:36389) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqJye-00019g-E0 for emacs-devel@gnu.org; Tue, 31 Aug 2010 02:05:48 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id A90BCE9143 for ; Tue, 31 Aug 2010 08:05:40 +0200 (CEST) X-SENDER-IP: [83.227.138.150] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsuAC44fExT44qWPGdsb2JhbACgaQwBAQEBNS2+BoU3BIoJgwQ X-IronPort-AV: E=Sophos;i="4.56,296,1280700000"; d="scan'208";a="1665533275" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO www.verona.se) ([83.227.138.150]) by ipb4.telenor.se with ESMTP; 31 Aug 2010 08:05:40 +0200 Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id 32D0745E14 for ; Tue, 31 Aug 2010 08:05:38 +0200 (CEST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 31 Aug 2010 01:26:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129476 Archived-At: Lars Magne Ingebrigtsen writes: > Lars Magne Ingebrigtsen writes: > >>> libmagick++-dev >>> >>> should do the trick. >> >> Thanks; it did. > > Reading the docs: > > ------- > - if the :width and :height keywords are specified, these values are > used for scaling the image. If only one of :width or :height is > specified, the other one will be calculated so as to preserve the > aspect ratio.If both :width and :height are specified, aspect ratio > will not be preserved. > ------- > > I did this: > > (create-image file nil nil > :width 100 > :height 100) > > But the resulting image was not rescaled. This is dependent on the loader. Try a file format that gets loaded with the imagemagick loader. -- Joakim Verona