Re: [xwiki-users] How to use the new SVG Rasterizing API
Sorry Miroslav, on my side I don’t know this api at all. I hope whoever introduced it can help you ;) Thanks -Vincent > On 24 May 2016, at 12:06, Miroslav Galajdawrote: > > Hi, does anyone know if this is going to be a bug or what is wrong with the > url generated as a temporary svg rendered file? > > By the way, what or how are the new SVG rasterizing API and the "old" SVG > plugin different? Does the SVG rasterizing API do the svg rasterization > better, does it supports more SVG features or what to expect from the new > API? > > Thank you. > > On 19 May 2016 at 12:53, Miroslav Galajda > wrote: > >> Hi, I have still some issues using this svg rasterizing API. >> >> I'm trying to use rasterizeToTemporaryResource to use the returned url in >> the img element in html macro, see my example bellow. But I cannot get this >> to return working url. It returns in my xwiki instace >> "/test-xwiki/wiki/xwiki/temp/Page1/WebHome/svg/858799895.png". I compared >> it to old svg plugin using $xwiki.svg.getSVGImageURL, and that works and >> returns the following working url: >> "/test-xwiki/bin/svg/Test/Page1/WebHome/858799895.png". What's wrong? >> >> {{velocity}} >> >> #set($svgText = "> http://www.w3.org/1999/xlink"; xmlns=""http://www.w3.org/2000/svg";> >> >> Layer 2 >> > stroke=""#00"" fill=""#ff"" id=""svg_1"" height=""213.948426"" >> width=""324.49861"" y=""132.625181"" x=""237.349801""/> >> > stroke=""#00"" stroke-width=""0"" font-size=""24"" >> font-family=""serif"" text-anchor=""middle"" xml:space=""preserve"" >> transform=""matrix(1, 0, 0, 1, 27, 10)"">This is an SVG Drawing >> >> ") >> #set($svgUrl = $services.svg.rasterizeToTemporaryResource($svgText, 640, >> 480)) >> $svgUrl >> >> {{html}} >> >> > height="480" alt="The image from xwiki.svg.getSvgImageUrl" /> >> {{/html}} >> >> {{/velocity}} >> >> >> On 19 May 2016 at 10:48, Vincent Massol wrote: >> >>> On 19 May 2016, at 10:45, Miroslav Galajda >>> wrote: By the way the "announcement" was in the release notes here >>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI >>> >>> Thanks, I’ve updated the text a bit: >>> >>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI >>> >>> -Vincent >>> On 19 May 2016 at 10:44, Miroslav Galajda wrote: > Hi, great. Thank you. Now I can see it in the extesion manager. > > Best regards > Miroslav Galajda > > On 19 May 2016 at 10:34, Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com> wrote: > >> On Thu, May 19, 2016 at 11:32 AM, Vincent Massol >> wrote: >> >> >>> Note: just saw Marius’ message so I guess whoever contributed this >>> extension had forgotten to document that it can be installed with the >>> Extension Manager… :) >>> >> >> The extension page had the wrong extension id (xwiki-platform-svg >>> instead >> of xwiki-platform-svg-rasterizer) and thus it wasn't listed in the >> Extension Manager. I reimported the extension and now it's fine. >> >> >>> >>> Thanks Marius for fixing it >>> -Vincent >>> On 19 May 2016, at 10:31, Vincent Massol >>> wrote: Hi Miroslav, > On 19 May 2016, at 09:52, Miroslav Galajda < >> miroslav.gala...@gmail.com> >>> wrote: > > Hi, > > I noticed the anoucement of the new SVG rasterzing API in the XWiki >> 8.0 > version. Could you point to where you saw that because I don’t remember any >>> announcement saying that it was bundled with XWiki 8.0? > Is it already available, or not? I have tried to use it in the >> velocity > macro, using the example usage at > >>> >> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, > but it seems that $services.svg is not available. Do I need to >>> enable >>> it or > it is an optional component that I need to install from somewhere. You need to install it. See >>> >> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions Thanks -Vincent > Thank you > Miroslav Galajda >>> >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>> >> >> > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list
Re: [xwiki-users] How to use the new SVG Rasterizing API
Hi, does anyone know if this is going to be a bug or what is wrong with the url generated as a temporary svg rendered file? By the way, what or how are the new SVG rasterizing API and the "old" SVG plugin different? Does the SVG rasterizing API do the svg rasterization better, does it supports more SVG features or what to expect from the new API? Thank you. On 19 May 2016 at 12:53, Miroslav Galajdawrote: > Hi, I have still some issues using this svg rasterizing API. > > I'm trying to use rasterizeToTemporaryResource to use the returned url in > the img element in html macro, see my example bellow. But I cannot get this > to return working url. It returns in my xwiki instace > "/test-xwiki/wiki/xwiki/temp/Page1/WebHome/svg/858799895.png". I compared > it to old svg plugin using $xwiki.svg.getSVGImageURL, and that works and > returns the following working url: > "/test-xwiki/bin/svg/Test/Page1/WebHome/858799895.png". What's wrong? > > {{velocity}} > > #set($svgText = " http://www.w3.org/1999/xlink"; xmlns=""http://www.w3.org/2000/svg";> > > Layer 2 >stroke=""#00"" fill=""#ff"" id=""svg_1"" height=""213.948426"" > width=""324.49861"" y=""132.625181"" x=""237.349801""/> >stroke=""#00"" stroke-width=""0"" font-size=""24"" > font-family=""serif"" text-anchor=""middle"" xml:space=""preserve"" > transform=""matrix(1, 0, 0, 1, 27, 10)"">This is an SVG Drawing > > ") > #set($svgUrl = $services.svg.rasterizeToTemporaryResource($svgText, 640, > 480)) > $svgUrl > > {{html}} > > height="480" alt="The image from xwiki.svg.getSvgImageUrl" /> > {{/html}} > > {{/velocity}} > > > On 19 May 2016 at 10:48, Vincent Massol wrote: > >> >> > On 19 May 2016, at 10:45, Miroslav Galajda >> wrote: >> > >> > By the way the "announcement" was in the release notes here >> > >> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI >> >> Thanks, I’ve updated the text a bit: >> >> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI >> >> -Vincent >> >> > On 19 May 2016 at 10:44, Miroslav Galajda >> > wrote: >> > >> >> Hi, great. Thank you. Now I can see it in the extesion manager. >> >> >> >> Best regards >> >> Miroslav Galajda >> >> >> >> On 19 May 2016 at 10:34, Marius Dumitru Florea < >> >> mariusdumitru.flo...@xwiki.com> wrote: >> >> >> >>> On Thu, May 19, 2016 at 11:32 AM, Vincent Massol >> >>> wrote: >> >>> >> >>> >> Note: just saw Marius’ message so I guess whoever contributed this >> extension had forgotten to document that it can be installed with the >> Extension Manager… :) >> >> >>> >> >>> The extension page had the wrong extension id (xwiki-platform-svg >> instead >> >>> of xwiki-platform-svg-rasterizer) and thus it wasn't listed in the >> >>> Extension Manager. I reimported the extension and now it's fine. >> >>> >> >>> >> >> Thanks Marius for fixing it >> -Vincent >> >> > On 19 May 2016, at 10:31, Vincent Massol >> wrote: >> > >> > Hi Miroslav, >> > >> >> On 19 May 2016, at 09:52, Miroslav Galajda < >> >>> miroslav.gala...@gmail.com> >> wrote: >> >> >> >> Hi, >> >> >> >> I noticed the anoucement of the new SVG rasterzing API in the XWiki >> >>> 8.0 >> >> version. >> > >> > Could you point to where you saw that because I don’t remember any >> announcement saying that it was bundled with XWiki 8.0? >> > >> >> Is it already available, or not? I have tried to use it in the >> >>> velocity >> >> macro, using the example usage at >> >> >> >> >>> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, >> >> but it seems that $services.svg is not available. Do I need to >> enable >> it or >> >> it is an optional component that I need to install from somewhere. >> > >> > You need to install it. >> > >> > See >> >> >>> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions >> > >> > Thanks >> > -Vincent >> > >> >> Thank you >> >> Miroslav Galajda >> >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
Hi, I have still some issues using this svg rasterizing API. I'm trying to use rasterizeToTemporaryResource to use the returned url in the img element in html macro, see my example bellow. But I cannot get this to return working url. It returns in my xwiki instace "/test-xwiki/wiki/xwiki/temp/Page1/WebHome/svg/858799895.png". I compared it to old svg plugin using $xwiki.svg.getSVGImageURL, and that works and returns the following working url: "/test-xwiki/bin/svg/Test/Page1/WebHome/858799895.png". What's wrong? {{velocity}} #set($svgText = "http://www.w3.org/1999/xlink"; xmlns=""http://www.w3.org/2000/svg";> Layer 2 This is an SVG Drawing ") #set($svgUrl = $services.svg.rasterizeToTemporaryResource($svgText, 640, 480)) $svgUrl {{html}} {{/html}} {{/velocity}} On 19 May 2016 at 10:48, Vincent Massolwrote: > > > On 19 May 2016, at 10:45, Miroslav Galajda > wrote: > > > > By the way the "announcement" was in the release notes here > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI > > Thanks, I’ve updated the text a bit: > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HNewSVGRasterizingAPI > > -Vincent > > > On 19 May 2016 at 10:44, Miroslav Galajda > > wrote: > > > >> Hi, great. Thank you. Now I can see it in the extesion manager. > >> > >> Best regards > >> Miroslav Galajda > >> > >> On 19 May 2016 at 10:34, Marius Dumitru Florea < > >> mariusdumitru.flo...@xwiki.com> wrote: > >> > >>> On Thu, May 19, 2016 at 11:32 AM, Vincent Massol > >>> wrote: > >>> > >>> > Note: just saw Marius’ message so I guess whoever contributed this > extension had forgotten to document that it can be installed with the > Extension Manager… :) > > >>> > >>> The extension page had the wrong extension id (xwiki-platform-svg > instead > >>> of xwiki-platform-svg-rasterizer) and thus it wasn't listed in the > >>> Extension Manager. I reimported the extension and now it's fine. > >>> > >>> > > Thanks Marius for fixing it > -Vincent > > > On 19 May 2016, at 10:31, Vincent Massol wrote: > > > > Hi Miroslav, > > > >> On 19 May 2016, at 09:52, Miroslav Galajda < > >>> miroslav.gala...@gmail.com> > wrote: > >> > >> Hi, > >> > >> I noticed the anoucement of the new SVG rasterzing API in the XWiki > >>> 8.0 > >> version. > > > > Could you point to where you saw that because I don’t remember any > announcement saying that it was bundled with XWiki 8.0? > > > >> Is it already available, or not? I have tried to use it in the > >>> velocity > >> macro, using the example usage at > >> > > >>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, > >> but it seems that $services.svg is not available. Do I need to > enable > it or > >> it is an optional component that I need to install from somewhere. > > > > You need to install it. > > > > See > > >>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions > > > > Thanks > > -Vincent > > > >> Thank you > >> Miroslav Galajda > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
Hi, great. Thank you. Now I can see it in the extesion manager. Best regards Miroslav Galajda On 19 May 2016 at 10:34, Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com> wrote: > On Thu, May 19, 2016 at 11:32 AM, Vincent Massol> wrote: > > > > Note: just saw Marius’ message so I guess whoever contributed this > > extension had forgotten to document that it can be installed with the > > Extension Manager… :) > > > > The extension page had the wrong extension id (xwiki-platform-svg instead > of xwiki-platform-svg-rasterizer) and thus it wasn't listed in the > Extension Manager. I reimported the extension and now it's fine. > > > > > > Thanks Marius for fixing it > > -Vincent > > > > > On 19 May 2016, at 10:31, Vincent Massol wrote: > > > > > > Hi Miroslav, > > > > > >> On 19 May 2016, at 09:52, Miroslav Galajda < > miroslav.gala...@gmail.com> > > wrote: > > >> > > >> Hi, > > >> > > >> I noticed the anoucement of the new SVG rasterzing API in the XWiki > 8.0 > > >> version. > > > > > > Could you point to where you saw that because I don’t remember any > > announcement saying that it was bundled with XWiki 8.0? > > > > > >> Is it already available, or not? I have tried to use it in the > velocity > > >> macro, using the example usage at > > >> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API > , > > >> but it seems that $services.svg is not available. Do I need to enable > > it or > > >> it is an optional component that I need to install from somewhere. > > > > > > You need to install it. > > > > > > See > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions > > > > > > Thanks > > > -Vincent > > > > > >> Thank you > > >> Miroslav Galajda > > > > > > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
On Thu, May 19, 2016 at 11:32 AM, Vincent Massolwrote: > Note: just saw Marius’ message so I guess whoever contributed this > extension had forgotten to document that it can be installed with the > Extension Manager… :) > The extension page had the wrong extension id (xwiki-platform-svg instead of xwiki-platform-svg-rasterizer) and thus it wasn't listed in the Extension Manager. I reimported the extension and now it's fine. > > Thanks Marius for fixing it > -Vincent > > > On 19 May 2016, at 10:31, Vincent Massol wrote: > > > > Hi Miroslav, > > > >> On 19 May 2016, at 09:52, Miroslav Galajda > wrote: > >> > >> Hi, > >> > >> I noticed the anoucement of the new SVG rasterzing API in the XWiki 8.0 > >> version. > > > > Could you point to where you saw that because I don’t remember any > announcement saying that it was bundled with XWiki 8.0? > > > >> Is it already available, or not? I have tried to use it in the velocity > >> macro, using the example usage at > >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, > >> but it seems that $services.svg is not available. Do I need to enable > it or > >> it is an optional component that I need to install from somewhere. > > > > You need to install it. > > > > See > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions > > > > Thanks > > -Vincent > > > >> Thank you > >> Miroslav Galajda > > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
Note: just saw Marius’ message so I guess whoever contributed this extension had forgotten to document that it can be installed with the Extension Manager… :) Thanks Marius for fixing it -Vincent > On 19 May 2016, at 10:31, Vincent Massolwrote: > > Hi Miroslav, > >> On 19 May 2016, at 09:52, Miroslav Galajda >> wrote: >> >> Hi, >> >> I noticed the anoucement of the new SVG rasterzing API in the XWiki 8.0 >> version. > > Could you point to where you saw that because I don’t remember any > announcement saying that it was bundled with XWiki 8.0? > >> Is it already available, or not? I have tried to use it in the velocity >> macro, using the example usage at >> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, >> but it seems that $services.svg is not available. Do I need to enable it or >> it is an optional component that I need to install from somewhere. > > You need to install it. > > See > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions > > Thanks > -Vincent > >> Thank you >> Miroslav Galajda > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
Hi Miroslav, > On 19 May 2016, at 09:52, Miroslav Galajdawrote: > > Hi, > > I noticed the anoucement of the new SVG rasterzing API in the XWiki 8.0 > version. Could you point to where you saw that because I don’t remember any announcement saying that it was bundled with XWiki 8.0? > Is it already available, or not? I have tried to use it in the velocity > macro, using the example usage at > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, > but it seems that $services.svg is not available. Do I need to enable it or > it is an optional component that I need to install from somewhere. You need to install it. See http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API#HPrerequisites26InstallationInstructions Thanks -Vincent > Thank you > Miroslav Galajda ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to use the new SVG Rasterizing API
On Thu, May 19, 2016 at 10:52 AM, Miroslav Galajda < miroslav.gala...@gmail.com> wrote: > Hi, > > I noticed the anoucement of the new SVG rasterzing API in the XWiki 8.0 > version. > > Is it already available, or not? I have tried to use it in the velocity > macro, using the example usage at > http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, > Refresh the page. You need to install the extension with the Extension Manager. > but it seems that $services.svg is not available. Do I need to enable it or > it is an optional component that I need to install from somewhere. > > Thank you > Miroslav Galajda > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to use the new SVG Rasterizing API
Hi, I noticed the anoucement of the new SVG rasterzing API in the XWiki 8.0 version. Is it already available, or not? I have tried to use it in the velocity macro, using the example usage at http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Rasterizing+API, but it seems that $services.svg is not available. Do I need to enable it or it is an optional component that I need to install from somewhere. Thank you Miroslav Galajda ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users