From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.help Subject: imagemagick support Date: Tue, 15 May 2012 17:55:32 +0300 Message-ID: <878vgtlcij.fsf@djcbsoftware.nl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337093764 17941 80.91.229.3 (15 May 2012 14:56:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 May 2012 14:56:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 15 16:56:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SUJAQ-00029O-W6 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 May 2012 16:56:03 +0200 Original-Received: from localhost ([::1]:36916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJAN-0005W6-QD for geh-help-gnu-emacs@m.gmane.org; Tue, 15 May 2012 10:55:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJAE-0005UJ-OS for help-gnu-emacs@gnu.org; Tue, 15 May 2012 10:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUJA9-0004Xd-Dm for help-gnu-emacs@gnu.org; Tue, 15 May 2012 10:55:50 -0400 Original-Received: from vs17.mail.saunalahti.fi ([62.142.117.198]:33362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJA9-0004Wn-5m for help-gnu-emacs@gnu.org; Tue, 15 May 2012 10:55:45 -0400 Original-Received: from vams (localhost [127.0.0.1]) by vs17.mail.saunalahti.fi (Postfix) with SMTP id D138F100048 for ; Tue, 15 May 2012 17:55:38 +0300 (EEST) Original-Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by vs17.mail.saunalahti.fi (Postfix) with ESMTP id ADC32100048 for ; Tue, 15 May 2012 17:55:38 +0300 (EEST) Original-Received: from borealis.djcbsoftware.nl (a88-114-95-13.elisa-laajakaista.fi [88.114.95.13]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 7FCFB216697 for ; Tue, 15 May 2012 17:55:37 +0300 (EEST) User-agent: mu4e 0.9.8.5-dev2; emacs 24.1.50.9 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.142.117.198 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84834 Archived-At: Hi all, I'm experimenting a bit with the new imagemagick support in emacs 24. I wonder if I am misunderstanding something. After compiling the latest emacs-24 with imagemagick support, I do: (imagemagick-register-types) After, (imagemagick-types) gives me a long list of types, including PNG, JPEG etc. However, when I then try: (create-image "mypng.png") => (image :type png :file "mypng.png") Still, if I explicitly do (create-image "mypng.png" 'imagemagick) => (image :type imagemagick :file "mypng.png") So, why isn't imagemagick used automatically? Second question, when I load an image, I want it to be at most, say, 800 pixels. Using imagemagick, I can do: (create-image "mypng.png" 'imagemagick nil :width 800) but that will also scale-up smaller images, which is not what I want. Is there a way to only scale-*down* images, but leave smaller ones as they are? I can call one of the imagemagick command line tools, but that seems somewhat suboptimal. Thanks, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C