From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: DJVU files and ImageMagick Date: Mon, 04 Feb 2019 07:18:43 +0000 Message-ID: <87ef8ot418.fsf@yandex.com> References: <87zhrdn8lf.fsf@gmx.net> <87va201e07.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119352"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: , emacs-devel@gnu.org To: Roland Winkler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 08:19:38 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqYXZ-000UxN-FY for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2019 08:19:37 +0100 Original-Received: from localhost ([127.0.0.1]:37679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqYXY-0005gW-D0 for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2019 02:19:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqYWs-0005gR-Bw for emacs-devel@gnu.org; Mon, 04 Feb 2019 02:18:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqYWq-0001XE-DV for emacs-devel@gnu.org; Mon, 04 Feb 2019 02:18:54 -0500 Original-Received: from forward102o.mail.yandex.net ([37.140.190.182]:59654) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqYWo-0001Td-AZ; Mon, 04 Feb 2019 02:18:50 -0500 Original-Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 489506680A74; Mon, 4 Feb 2019 10:18:46 +0300 (MSK) Original-Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YbAb130h1W-IkqOG3Po; Mon, 04 Feb 2019 10:18:46 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1549264726; bh=ALGWvhCboSh6+05KrReqTWHJGyUSdDH9m7SiZxhnTs4=; h=From:To:Cc:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=G2IzWo9Je6G4LsGN0YkUeaT7EBFtM//XgGcnaEN5TP7mGd/76GkkQ8ShOCKnGTy4F q+hgbmMq31sG0Devd/BhyCFWLJ7eUoxbx1iuNUUfHjieAJlsMxx70sPaFpbMOeZhsD WUAJpMSZiM0OpyRh6Kbd5i/3Vln530G+WdB51bUo= Authentication-Results: mxback17j.mail.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uPP4B8lq1J-IiDCVjUN; Mon, 04 Feb 2019 10:18:45 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: <87va201e07.fsf@gnu.org> (Roland Winkler's message of "Sun, 03 Feb 2019 20:30:48 -0600") Face: iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAABmJLR0QA/wD/AP+gvaeTAAAA fUlEQVQokc2SMQqAMAxFX7yFnq6IuAjetFcQF40H6B4XodYqKjgYsgQen5cQMeN5FS/YD2hVvEf1 DDeLHQJNgwiACG1LCAmQDM4ds+r6gp6mLXVfIixLZKL3OJJf04xhOPN+kp1odd2R7vvrLW9vIrmr KvNMVVGWmdhv/mQFS9GDojbghEYAAAAASUVORK5CYII= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.140.190.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:232956 Archived-At: >>>>> Roland Winkler writes: > On Sat, Feb 02 2019, Stephen Berman wrote: >> I build Emacs from master with ImageMagick support, but if I try >> to visit a DJVU file (e.g. a ca. 200 page book of about 1.5 MB), >> immediately almost all my system's RAM is consumed, bringing >> Emacs to a halt, so it doesn't display the file, and I can >> recover the memory only by killing Emacs. > I am just curious: why are all pages converted immediately to > emacs' internal format upon loading a multipage document (be it a > djvu document or any other format)? This sounds like a misfeature > to me. I am not surprised this quickly consums all available > memory, say, if you wanted to work with multiple djvu documents > simultaneously. > The djvu package from GNU Elpa uses the command line tool ddjvu > from djvulibre to convert only the one page that is currently > displayed. This approach is very fast in my experience, and it is > obviously by far less demanding when working with many > "many-pages" documents. >> (I normally view DJVU files in Emacs using the djvu package from >> ELPA > Really? Hooray, someone else is using this package, too. I > thought I was the very only one. Me too. I have built emacs with ImageMagick and can view 20Mb+ djvu files easily with the excellent djvu package. Best wishes, Colin Baxter m43cap@yandex.com