[Ipe-discuss] Importing an IPE document to a png file of fixed dimensions

Nasser M. Abbasi nma at 12000.org
Sun Mar 6 10:02:28 CET 2022

On 3/6/2022 2:35 AM, Lluís Alemany-Puig via Ipe-discuss wrote:
> Hello all,
> I have to prepare a poster for a conference I'm attending (online) and I
> thought I could use IPE for this.
> Now, I've been told that I have to send a png file of dimensions
> 2500x1406 (I believe in pixels -- they didn't specify units) to one of
> the conference organizers, so I thought I would make a stylesheet with
> layout size 2500x1408, like this:
>      <?xml version="1.0"?>
>      <!DOCTYPE ipestyle SYSTEM "ipe.dtd">
>      <ipestyle name="poster_format">
>      <!-- layout size for the poster -->
>      <layout paper="2500 1408" origin="0 0" frame="2500 1408"/>
>      <! -- other stuff, like colors and such -->
>      </ipestyle>

The units there are postscript units (also called point).
Not in pixels.

One inch has 72 postscript units.  SO for letter paper, it
has size 612 by 792. These are postscript units (points).
Which come out, if you divide by 72 to 8.5 inches by 11 inches.

So for your 2500 by 1408, this will give paper size of
34.7 inches by 19.55 inches. SO I think you need find out how large
the poster you are making should be and convert that to
postscript units and use those in IPE style file.

> and then export the ipe file to a png. That, however, did not work quite
> as expected: the exported png file did not have the same dimensions as
> the layout. In fact, the png had different dimensions depending on the
> zoom level on the canvas: e.g. the smaller I could see the contents on
> IPE's GUI, the smaller (in dimensions) the png file. I also tried to
> import the pdf-saved IPE document into GIMP to then convert it into png,
> but the dimensions were 3472x1952.
> Is there a way to create an IPE document so that after exporting it to
> png (using IPE's GUI or other) the file has dimensions 2500x1408? I wish
> I could send a pdf to the conference's organizers but it has to be a png.
> Thank you all,
> Lluís Alemany


More information about the Ipe-discuss mailing list