From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: pdf images in html export Date: Wed, 12 Nov 2014 16:59:34 -0600 Message-ID: References: <84tx24x1r6.fsf@tm6592.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xogsz-0003dP-KD for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 17:59:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xogsy-0006y7-HA for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 17:59:37 -0500 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:49593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xogsy-0006xy-6H for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 17:59:36 -0500 Received: by mail-la0-f53.google.com with SMTP id mc6so12379310lab.12 for ; Wed, 12 Nov 2014 14:59:34 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode On Wed, Nov 12, 2014 at 3:32 PM, Andreas Leha wrote: > Hi John, > > John Hendy writes: >> On Nov 12, 2014 7:36 AM, "Andreas Leha" >> wrote: >>> >>> Hi Rainer, >>> >>> Rainer M Krug writes: >>> > Andreas Leha writes: [snip] >>> Here, I am after a solution, that works on images that are not >> produced >>> but merely included via [[file:./some.pdf]]. >>> >> >> If the names are always the same, could you just sed or replace-regexp >> all *.pdf for *.png? >> > > I could. And I would need to do the conversion manually as well. Agreed, and sounds like you're already considering ImageMagick for this. I've used it similarly with more or less good results. I always have to look up the right options, play with one file a bunch to get a nice blend of size/quality, and also have learned to use whatever option (either convert or mogrify) saves a *new* version, as I didn't get at first that one of those edits the file in-place! > But I still want the pdfs to go into the LaTeX export. > >> Not elegant, but works easily/now, and takes less time than this >> thread :) > > Hint taken. Such feature is apparently not too important for most. > Yeah, that was mostly tongue in cheek... I'd be doing the exact same thing (looking for a better way to automate/process, even though technically it's simply changing the the contents of \includegraphics{something} or . Thus, to the last point, I'd generate .pdfs, leave the LaTeX version alone, convert some other image format for html, and then sed/replace-regexp on the html to change all image.pdf -> image.png. John > [...] > > Thanks, > Andreas > >