From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vaidheeswaran C Newsgroups: gmane.emacs.devel Subject: Re: Fit image to window height or width Date: Thu, 15 Jan 2015 17:46:23 +0530 Message-ID: <54B7AF97.9010304@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421324272 25773 80.91.229.3 (15 Jan 2015 12:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 12:17:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 15 13:17:41 2015 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 1YBjMr-0001nu-2p for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 13:17:41 +0100 Original-Received: from localhost ([::1]:50343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBjMq-0001Jr-8t for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 07:17:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBjMb-0001Jl-4u for emacs-devel@gnu.org; Thu, 15 Jan 2015 07:17:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBjMX-0000W2-5X for emacs-devel@gnu.org; Thu, 15 Jan 2015 07:17:25 -0500 Original-Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]:40469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBjMW-0000Vj-Tc for emacs-devel@gnu.org; Thu, 15 Jan 2015 07:17:21 -0500 Original-Received: by mail-pa0-f66.google.com with SMTP id rd3so13211623pab.1 for ; Thu, 15 Jan 2015 04:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AH+fymtAojvHKIUztYvkibmu9+gavYmbz05PAa3X12c=; b=IHoPHXALCLGPNketQJIX7/+bY28u1RoiZ7Rc8pjtjqaRxV95KJNtWpoDJc0Qjoi+kg NWpnH+go9UgFhxVVHr7Zr3bkQ+al03TlZnX7J1Y+qSb9Dz9Ff4PrkdEbLJ+Hbaeae2KI i912kemj03Co1QQcPDuOL16otG4OENlBZTOv8PGzHxZJ1BosmOxrIXZhjiNCPfw/A++I xYdNzsqb2gG3WspBYfG6vvyUJUZ3i8Ui4rf8GR3y7loKN8TUVbGaOi/s63a7lOfgAYv+ 71Gk3pTdpvW5xXeH1DG7a5AGqY6zdJuiSE5HniZdGFaxqvHcxPrg0ANCnX4sFgaGbOhm YECQ== X-Received: by 10.70.45.39 with SMTP id j7mr13446842pdm.169.1421324239347; Thu, 15 Jan 2015 04:17:19 -0800 (PST) Original-Received: from [192.168.43.83] ([106.206.180.165]) by mx.google.com with ESMTPSA id ka5sm1397363pbc.27.2015.01.15.04.17.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 04:17:18 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20121216 Icedove/3.0.11 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::242 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:181295 Archived-At: On Thursday 15 January 2015 05:32 PM, joakim@verona.se wrote: >> (See my earlier post) >> > >> > I am using doc-view.el for digitizing scanned books. I usually have >> > the document page span the whole of window width. Occassionally, I >> > run into a page -- mostly a table and occsionally an image -- that is >> > in landscape format. >> > >> > 1. I find that `image-transform-fit-to-height' and friends apparently >> > don't work. >> > Did you configure with imagemagik? > > The following comment seems to "corroborate" the behaviour I am seeing. ;; FIXME this doesn't seem mature yet. Document in manual when it is. (defvar image-transform-resize nil I am runnning Stock Debian squeeze (XFCE) and emacs built from trunk @ commit 94a3f7648cfc9d1d205e69eff0beec416d30a0fe Author: Andreas Schwab Date: Wed Dec 10 09:44:26 2014 +0100 Images are usually pbm or ppm files.