From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus-Dieter Bauer Newsgroups: gmane.emacs.devel Subject: Re: Fallback mode for image magick? Date: Fri, 28 Jun 2013 14:15:39 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6c2c40bbd2404e035d809 X-Trace: ger.gmane.org 1372421784 23741 80.91.229.3 (28 Jun 2013 12:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 12:16:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 14:16:24 2013 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 1UsXbC-000897-VY for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 14:16:23 +0200 Original-Received: from localhost ([::1]:38531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXbC-00023G-FZ for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 08:16:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXb6-000235-Ty for emacs-devel@gnu.org; Fri, 28 Jun 2013 08:16:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsXb3-0006CA-S1 for emacs-devel@gnu.org; Fri, 28 Jun 2013 08:16:16 -0400 Original-Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:37016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXb0-000645-6N; Fri, 28 Jun 2013 08:16:10 -0400 Original-Received: by mail-ve0-f178.google.com with SMTP id pb11so1727229veb.37 for ; Fri, 28 Jun 2013 05:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ShpmVssXIHC24+kc+MKwiN5JycIUiGxhtZOQOCKgEdU=; b=CvtyduC2rmzuM+3ont0ZQl2xhAOmpxF3YPnBkjSWxolr3nFkYJ90rO3VPqXu968aUc 42UU9bPn1olWy+vU8ZOdHKipcWePOJauwEtuZZoHKIQhXzXEgGH6cH+VVcb7g0GHai1Q pIsSGvxnDpINMDLDsEL50IKG274NENbj912lFDOuJIzTF1jQE65rP4jc1tL94aoFJi91 bWroDrUWXDI2exAHE+boch+K3nJAWJckelrQlTHhv0nm/5VTlL8SPazw9Da66q7c37UA s100Pu+g+GtEGnSkVJyWwpYq0ZIloJzL71WJ+LGKwzRbD8RdqqVgK6ku6nbuV8T4Mnv9 VsHg== X-Received: by 10.58.235.69 with SMTP id uk5mr5465108vec.17.1372421769376; Fri, 28 Jun 2013 05:16:09 -0700 (PDT) Original-Received: by 10.220.224.73 with HTTP; Fri, 28 Jun 2013 05:15:39 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::232 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:161193 Archived-At: --047d7bd6c2c40bbd2404e035d809 Content-Type: text/plain; charset=UTF-8 2013/6/27 Glenn Morris > Klaus-Dieter Bauer wrote: > > > Is there some fallback solution available to get image-scaling through > > convert.exe instead transparently faking the imagemagick-magick support > to > > emacs lisp code? > > You could look at how image-dired.el or thumbs.el do it. > Both still use external ImageMagick support (bug#10758). > Can you elaborate on this? I appreciate the answer, as it will ease implementing the use of convert.exe. My intent however is to write a fix, that makes this a default fallback for code that wants to use builtin support without the need to edit the third party source code. Finding out what functions and variables I need to emulate is the hard part here for me. I can probably do it by comparing the defined variables in emacs on Cygwin and native Windows, but it would give a high risk of missing something. kind regards, Klaus --047d7bd6c2c40bbd2404e035d809 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2013/6/27 Glenn Morris=C2=A0<rgm@gnu= .org>
Klaus-Dieter Bauer wrote:

> Is there some fallb= ack solution available to get image-scaling through
> convert.exe ins= tead transparently faking the imagemagick-magick support to
> emacs l= isp code?

You could look at how image-dired.el or thumbs.el do it.
Both = still use external ImageMagick support (bug#10758).
Can you elaborate on this?

I appreciate the= answer, as it will ease implementing the use of convert.exe.=C2=A0

My intent however is to write a fix, that makes this a = default fallback for code that wants to use builtin support without the nee= d to edit the third party source code. Finding out what functions and varia= bles I need to emulate is the hard part here for me.

I can probably do it by comparing the defined variables= in emacs on Cygwin and native Windows, but it would give a high risk of mi= ssing something.=C2=A0

kind regards, Klaus
--047d7bd6c2c40bbd2404e035d809--