Re: Export PNG

Raed Mohsen via Ipe-discuss <ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]> Fri, 8 Mar 2019 14:42:14 -0500
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <CA+2gDLjR_74FwfJFf3HZXqVmUbhspKxFmXHkMKoM_9snYUBz=w@mail.gmail.com>
--===============6031399023536676432==
Content-Type: multipart/alternative; boundary="000000000000242b3c05839a6c96"

--000000000000242b3c05839a6c96
Content-Type: text/plain; charset="UTF-8"

Hi,

I use Notepad ++. But, here is what happened.

I made the same modification for ipe 7.2.8 and there is no problem at all.
I double checked and it seems only ipe 7.2.10 is giving me this issue.

regards

On Fri, 8 Mar 2019 at 13:58, Otfried Cheong via Ipe-discuss <
ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]> wrote:

> That location is not even close to the change you needed to make.
>  Perhaps you used an editor that is not suitable for editing source code
> and it messed up something else?
>
> Cheers,
>   Otfried
>
> On Fri, Mar 8, 2019, at 19:43, Raed Mohsen wrote:
> > Thanks.
> >
> > I modified it, but once I open ipe I get the following error.
> >
> > image.png
> >
> >
> >
> > On Fri, 8 Mar 2019 at 11:08, Otfried Cheong via Ipe-discuss
> > <ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]> wrote:
> > > Sure, I guess we can change that.
> > >
> > >  In fact you can change it yourself right now. In "actions.lua", find
> the function "MODEL:action_export_png()",
> > >  and change
> > >
> > >  self.ui:renderPage(self.doc, self.pno, self.vno,
> > >  "png", s, self.ui:zoom(),
> > >  false, false) -- transparent, nocrop
> > >
> > >  to
> > >
> > >  self.ui:renderPage(self.doc, self.pno, self.vno,
> > >  "png", s, self.ui:zoom(),
> > >  true, false) -- transparent, nocrop
> > >
> > >  Cheers,
> > >  Otfried
> > >
> > >  On Fri, Mar 8, 2019, at 15:18, Raed Mohsen via Ipe-discuss wrote:
> > >  > Hi,
> > >  >
> > >  > Is it possible to make the "export png" option from ipe with
> > >  > transparent background by default ?
> > >  >
> > >  > Regards
> > >  >
> > >  > --
> > >  > Raed Saasaa
> > >  > Power Electronics Engineer
> > >  > Murata Power Solutions | Toronto, Canada
> > >  > Phone: +1 250 899 6079
> > >  > https://www.linkedin.com/in/raedsaasaa
> > >  > _______________________________________________
> > >  > Ipe-discuss mailing list
> > >  > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
> > >  > https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
> > >  >
> > >  _______________________________________________
> > >  Ipe-discuss mailing list
> > > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
> > > https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
> >
> >
> > --
> > Raed Saasaa
> > Power Electronics Engineer
> > Murata Power Solutions | Toronto, Canada
> > Phone: +1 250 899 6079
> > https://www.linkedin.com/in/raedsaasaa
> > Attachments:
> > * image.png
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
>


-- 
Raed Saasaa
Power Electronics Engineer
Murata Power Solutions | Toronto, Canada
Phone: +1 250 899 6079
https://www.linkedin.com/in/raedsaasaa

--000000000000242b3c05839a6c96
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"color:rgb(0,0,0)">Hi,</span><div style=3D"c=
olor:rgb(0,0,0)">=C2=A0</div><div style=3D"color:rgb(0,0,0)">I use Notepad=
=C2=A0++. But, here is what happened.</div><div style=3D"color:rgb(0,0,0)">=
<br></div><div style=3D"color:rgb(0,0,0)">I made the same modification for =
ipe 7.2.8 and there is no problem at all. I double checked and it seems onl=
y ipe 7.2.10 is giving me this issue.</div><div style=3D"color:rgb(0,0,0)">=
<br></div><div style=3D"color:rgb(0,0,0)">regards=C2=A0</div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, 8 Mar =
2019 at 13:58, Otfried Cheong via Ipe-discuss &lt;<a href=3D"mailto:ipe-dis=
cuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]">ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">That location is n=
ot even close to the change you needed to make.=C2=A0 =C2=A0Perhaps you use=
d an editor that is not suitable for editing source code and it messed up s=
omething else?<br>
<br>
Cheers,<br>
=C2=A0 Otfried<br>
<br>
On Fri, Mar 8, 2019, at 19:43, Raed Mohsen wrote:<br>
&gt; Thanks.<br>
&gt; <br>
&gt; I modified it, but once I open ipe I get the following error.<br>
&gt; <br>
&gt; image.png<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Fri, 8 Mar 2019 at 11:08, Otfried Cheong via Ipe-discuss <br>
&gt; &lt;<a href=3D"mailto:ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]" target=3D"_blan=
k">ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]</a>&gt; wrote:<br>
&gt; &gt; Sure, I guess we can change that.<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 In fact you can change it yourself right now. In &quot;acti=
ons.lua&quot;, find the function &quot;MODEL:action_export_png()&quot;,<br>
&gt; &gt;=C2=A0 and change<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 self.ui:renderPage(self.doc, self.pno, self.vno,<br>
&gt; &gt;=C2=A0 &quot;png&quot;, s, self.ui:zoom(),<br>
&gt; &gt;=C2=A0 false, false) -- transparent, nocrop<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 to<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 self.ui:renderPage(self.doc, self.pno, self.vno,<br>
&gt; &gt;=C2=A0 &quot;png&quot;, s, self.ui:zoom(),<br>
&gt; &gt;=C2=A0 true, false) -- transparent, nocrop<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 Cheers,<br>
&gt; &gt;=C2=A0 Otfried<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 On Fri, Mar 8, 2019, at 15:18, Raed Mohsen via Ipe-discuss =
wrote:<br>
&gt; &gt;=C2=A0 &gt; Hi,<br>
&gt; &gt;=C2=A0 &gt; <br>
&gt; &gt;=C2=A0 &gt; Is it possible to make the &quot;export png&quot; opti=
on from ipe with <br>
&gt; &gt;=C2=A0 &gt; transparent background by default ?<br>
&gt; &gt;=C2=A0 &gt; <br>
&gt; &gt;=C2=A0 &gt; Regards <br>
&gt; &gt;=C2=A0 &gt; <br>
&gt; &gt;=C2=A0 &gt; -- <br>
&gt; &gt;=C2=A0 &gt; Raed Saasaa<br>
&gt; &gt;=C2=A0 &gt; Power Electronics Engineer<br>
&gt; &gt;=C2=A0 &gt; Murata Power Solutions | Toronto, Canada<br>
&gt; &gt;=C2=A0 &gt; Phone: +1 250 899 6079<br>
&gt; &gt;=C2=A0 &gt; <a href=3D"https://www.linkedin.com/in/raedsaasaa" rel=
=3D"noreferrer" target=3D"_blank">https://www.linkedin.com/in/raedsaasaa</a=
> <br>
&gt; &gt;=C2=A0 &gt; _______________________________________________<br>
&gt; &gt;=C2=A0 &gt; Ipe-discuss mailing list<br>
&gt; &gt;=C2=A0 &gt; <a href=3D"mailto:Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]" tar=
get=3D"_blank">Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]</a><br>
&gt; &gt;=C2=A0 &gt; <a href=3D"https://mailman.science.uu.nl/mailman/listi=
nfo/ipe-discuss" rel=3D"noreferrer" target=3D"_blank">https://mailman.scien=
ce.uu.nl/mailman/listinfo/ipe-discuss</a><br>
&gt; &gt;=C2=A0 &gt;<br>
&gt; &gt;=C2=A0 _______________________________________________<br>
&gt; &gt;=C2=A0 Ipe-discuss mailing list<br>
&gt; &gt; <a href=3D"mailto:Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]" target=3D"_bla=
nk">Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]</a><br>
&gt; &gt; <a href=3D"https://mailman.science.uu.nl/mailman/listinfo/ipe-dis=
cuss" rel=3D"noreferrer" target=3D"_blank">https://mailman.science.uu.nl/ma=
ilman/listinfo/ipe-discuss</a><br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Raed Saasaa<br>
&gt; Power Electronics Engineer<br>
&gt; Murata Power Solutions | Toronto, Canada<br>
&gt; Phone: +1 250 899 6079<br>
&gt; <a href=3D"https://www.linkedin.com/in/raedsaasaa" rel=3D"noreferrer" =
target=3D"_blank">https://www.linkedin.com/in/raedsaasaa</a> <br>
&gt; Attachments:<br>
&gt; * image.png<br>
_______________________________________________<br>
Ipe-discuss mailing list<br>
<a href=3D"mailto:Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]" target=3D"_blank">Ipe-di=
scuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]</a><br>
<a href=3D"https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss" rel=
=3D"noreferrer" target=3D"_blank">https://mailman.science.uu.nl/mailman/lis=
tinfo/ipe-discuss</a><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">Raed Saas=
aa<div><span style=3D"font-size:12.8px">Power Electronics Engineer</span></=
div><div><span style=3D"font-size:12.8px">Murata Power Solutions | Toronto,=
 Canada</span><br></div><div><div>Phone: +1 250 899 6079</div><div><a href=
=3D"https://www.linkedin.com/in/raedsaasaa" target=3D"_blank">https://www.l=
inkedin.com/in/raedsaasaa</a>=C2=A0<br></div></div></div></div></div></div>

--000000000000242b3c05839a6c96--

--===============6031399023536676432==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ipe-discuss mailing list
Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss

--===============6031399023536676432==--