From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: computing the size of a tikz to png image during export Date: Thu, 25 Jan 2018 18:15:40 +0100 Message-ID: References: <878tcmfnb2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eelTu-0002BQ-Iq for emacs-orgmode@gnu.org; Thu, 25 Jan 2018 12:38:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eelTq-00050Y-DA for emacs-orgmode@gnu.org; Thu, 25 Jan 2018 12:38:34 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:30121) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eelTq-000507-2a for emacs-orgmode@gnu.org; Thu, 25 Jan 2018 12:38:30 -0500 In-Reply-To: <878tcmfnb2.fsf@gmail.com> (Eric S. Fraga's message of "Thu, 25 Jan 2018 06:46:25 +0000") 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" To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2018-01-25 06:46, Eric S Fraga writes: > On Wednesday, 24 Jan 2018 at 08:54, Alan Schmitt wrote: >> If I understand how it works in the png case, a standalone latex file is >> first generated, then it is compiled to pdf and converted to png using >> imagemagick. Instead of specifying the geometry of the image (width of >> 800 pixels above), I would like to compute it using its original size. >> Is it possible? > > Have you tried removing the -geometry setting? Imagemagick should be > fine with just the density option. Thank you for the suggestion. Unfortunately the image is very large with a density of 600, and if I use a lower density then it is too low resolution. I found a solution using an -resize argument. It seems to work fairly well. Thanks again, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2017-12: 406.82, 2016-12: = 404.42 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAlpqEL0ACgkQBA0KO07S 5ceqKwf9HPN081jCvQtBssB9ZG3nzbNrQ/mEaEtmRdt6KqY8ZLkD5YENILYgKGDW Pk2TDUkChq1dRh0Ore/O1rp19oK4XlKjdVy2Npd/N+lfeRvDJkOCxGuS6h9qVFRS eTv05FJtBNa1zewClDA824ALJrqQbihjV1XtaClS0wnd2MxgCCO0fNtrsjU22TjX JcAMs2cBJKkiMhOL/a9xlIj+34VmgF+zRSRYvKsh0c6yT0YBU7upAvcRaQFN+XtM XNEdSTXedHS0/L0wYoRMGAEdq74TZXwZWnygEjkRlb0lsl1B229yKZdHkcGULxP/ vZhiF5prsiHLnq+XcePABM3dF49Djg== =WESJ -----END PGP SIGNATURE----- --=-=-=--