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 10:32:57 +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 1283243591 27786 80.91.229.12 (31 Aug 2010 08:33:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 08:33:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Julien Danjou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 31 10:33:10 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 1OqMHF-0008SE-TW for ged-emacs-devel@m.gmane.org; Tue, 31 Aug 2010 10:33:10 +0200 Original-Received: from localhost ([127.0.0.1]:51117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqMHF-0000GM-EF for ged-emacs-devel@m.gmane.org; Tue, 31 Aug 2010 04:33:09 -0400 Original-Received: from [140.186.70.92] (port=52677 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqMH8-0000GH-Gy for emacs-devel@gnu.org; Tue, 31 Aug 2010 04:33:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqMH7-0003NM-5I for emacs-devel@gnu.org; Tue, 31 Aug 2010 04:33:02 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:48487) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqMH7-0003NA-0X for emacs-devel@gnu.org; Tue, 31 Aug 2010 04:33:01 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id B9746E8F68 for ; Tue, 31 Aug 2010 10:32:59 +0200 (CEST) X-SENDER-IP: [83.227.138.150] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsuAFdbfExT44qWPGdsb2JhbACgagwBAQEBNS29UoU3BIoJgwQ X-IronPort-AV: E=Sophos;i="4.56,297,1280700000"; d="scan'208";a="125128303" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO www.verona.se) ([83.227.138.150]) by ipb1.telenor.se with ESMTP; 31 Aug 2010 10:32:59 +0200 Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id C678E46BE7; Tue, 31 Aug 2010 10:32:57 +0200 (CEST) In-Reply-To: (Julien Danjou's message of "Tue, 31 Aug 2010 10:02:39 +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:129482 Archived-At: Julien Danjou writes: > On Tue, Aug 31 2010, joakim@verona.se wrote: > >> This is dependent on the loader. Try a file format that gets loaded >> with the imagemagick loader. > > This seems awkward. Why isn't everything loaded with ImageMagick, at > least when emacs is compiled with it? You can have several loaders compiled in at the same time. Configure will normaly pick up all available libraries, so having more than one loader able to load jpeg, for instance, is normal when imagemagick is enabled. You can make the imagemagick support feign ignorance of particular image types with imagemagick-types-inhibit, which by default has the value (C HTML HTM TXT PDF). There is currently AFAIK no way to change the priorities of the loaders. 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. -- Joakim Verona