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: imagemagic in image-mode and image-dired-thumbnail-mode? Date: Sun, 14 Jul 2013 14:40:37 +0200 Message-ID: References: <87a9lp8uxk.fsf@gmail.com> <87ehb1bbvf.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373805659 22608 80.91.229.3 (14 Jul 2013 12:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jul 2013 12:40:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 14 14:41:00 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 1UyLbo-0005US-0j for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 14:41:00 +0200 Original-Received: from localhost ([::1]:44102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyLbn-00037L-MU for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 08:40:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyLbk-00037C-3K for emacs-devel@gnu.org; Sun, 14 Jul 2013 08:40:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyLbh-000643-TR for emacs-devel@gnu.org; Sun, 14 Jul 2013 08:40:55 -0400 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:59883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyLbh-00063V-Mh for emacs-devel@gnu.org; Sun, 14 Jul 2013 08:40:53 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 052C2D4EFF; Sun, 14 Jul 2013 14:40:55 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF4) Original-Received: from mf4.bahnhof.se ([127.0.0.1]) by localhost (mf4.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vn7YONiLjaE5; Sun, 14 Jul 2013 14:40:48 +0200 (CEST) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf4.bahnhof.se (Postfix) with ESMTP id 2FAE0E43459; Sun, 14 Jul 2013 14:40:47 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id 3612C4ECFBF; Sun, 14 Jul 2013 12:40:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rbJAy_HgmKp4; Sun, 14 Jul 2013 14:40:37 +0200 (CEST) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id 6D1574EC16D; Sun, 14 Jul 2013 14:40:37 +0200 (CEST) In-Reply-To: <87ehb1bbvf.fsf@gmail.com> (Vitalie Spinu's message of "Sun, 14 Jul 2013 13:48:52 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 213.80.101.12 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:161868 Archived-At: Vitalie Spinu writes: > >> joakim@verona.se > >> on Sun, 14 Jul 2013 10:32:50 +0200 wrote: > > [...] > > > > At any rate, as I recall, there are no reasons not to implement scaling > > support in image mode, Someone(TM) just needs to invest some energy. It > > shouldnt even be very hard. > > >> > >> I naturally wonder if there should be a global user custom variable > >> like: > >> > >> (defcustom image-view-type (and (image-type-available-p 'imagemagick) > >> 'imagemagick)) > >> > > How about this one? Would it ever make sense to use libjpeg or libpng if > imagemagick support is available? If not, then image-mode and > image-dired can use imagemagick whenever present and no custom var is > necessary. Imagemagick handles a lot of file formats, and sometimes you want another library to have higher priority. Thats what imagemagick-enabled-types and imagemagick-types-inhibit is for. The code above wont work because (image-type-available-p 'imagemagick), 'imagemagick is not an image type, its a feature that provides image types. > > Vitalie > -- Joakim Verona