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: Wed, 01 Sep 2010 10:40:01 +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 1283330430 1856 80.91.229.12 (1 Sep 2010 08:40:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 08:40:30 +0000 (UTC) To: emacs-devel@gnu.org, larsi@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 01 10:40:27 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 1Oqiro-0003Bp-WD for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2010 10:40:25 +0200 Original-Received: from localhost ([127.0.0.1]:53853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqiro-0003oZ-Ay for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2010 04:40:24 -0400 Original-Received: from [140.186.70.92] (port=56855 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqirc-0003ln-Ai for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:40:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqirX-0006kW-Km for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:40:12 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:57325) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqirX-0006k6-D5 for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:40:07 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 636E9E8EB3 for ; Wed, 1 Sep 2010 10:40:06 +0200 (CEST) X-SENDER-IP: [83.227.138.150] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApU9ALaufUxT44qWPGdsb2JhbACHaph1DAEBAQE1Lb1ZhTkEihGDDA X-IronPort-AV: E=Sophos;i="4.56,303,1280700000"; d="scan'208";a="124519762" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO www.verona.se) ([83.227.138.150]) by ipb2.telenor.se with ESMTP; 01 Sep 2010 10:40:03 +0200 Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id B4C8E71549E; Wed, 1 Sep 2010 10:40:01 +0200 (CEST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 31 Aug 2010 16:55:45 +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:129546 Archived-At: Lars Magne Ingebrigtsen writes: > joakim@verona.se writes: > >> In order to get the desired loader, change image-type-file-name-regexps, >> or explicitly provide the loader when making the display spec: >> >> (put-text-property 10 11 'display (list 'image :type 'imagemagick :file "/home/joakim/my_scans/doc.djvu[1]")) >> >> Clearly a better api will be beneficial. When I merged the patch I >> focused on minimizing the breakage of other packages. Even so, Cygwin >> and DOS builds broke. Now that most issues seem resolved, we can maybe >> continue with improving the api. > > Yes, please do. > > (create-image file nil nil > :type 'imagemagick > :width 100 > :height 100) > > didn't work, and > > (let ((image-type-file-name-regexps '(("." imagemagick)))) > (create-image file nil nil > :width 100 > :height 100)) > > didn't work... This works perfectly for me: (put-image (create-image "/home/joakim/sicklaplanritning.jpg" 'imagemagick nil :width 100 :height 100) 0) -- Joakim Verona