Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: Image Conversion: SVG to PNG

by syphilis (Chancellor)
on Apr 24, 2017 at 09:10 UTC ( #1188744=note: print w/replies, xml ) Need Help??

in reply to Re^2: Image Conversion: SVG to PNG
in thread Image Conversion: SVG to PNG

Thanks also for offers of help with a PPM package and Windows build

A little extra FYI:
I ran a "ppm install" of Image-LibRSVG on "strawberry-perl-ld #1 Wed May 11 11:19:43 2016 x64" (MSWin32-x64-multi-thread-ld) and ran your one-liners on the first svg file that came to hand.
The generated png files look fine to me.


Replies are listed 'Best First'.
Re^4: Image Conversion: SVG to PNG
by kcott (Chancellor) on Apr 25, 2017 at 08:37 UTC

    ++ Again, many thanks for the effort you've put in on this: it is much appreciated.

    The only Windows box I currently have available is an old laptop, which sits in its bag for most of the year, and only sees the light of day every few months or so: I'll probably end up using this for the initial (deployment) tests. It's running Strawberry Perl (v5.12), so good to know Image::LibRSVG works with that. And, although the laptop is now fairly ancient, it's probably about a similar vintage to Image::LibRSVG, so I don't foresee any issues in that area.

    — Ken

      running Strawberry Perl (v5.12), so good to know Image::LibRSVG works with that

      I was a little concerned that there might be problems with such an old version of Strawberry, but it works fine on my 32-bit Strawberry 5.12.2.
      I was more concerned about the capability of that old ppm utility, but it did the job despite emitting some strange warnings.

      Those early builds of Strawberry Perl don't have the sisyphusion repo in their list of repositories, so if you want to run:
      ppm install Image-LibRSVG or even: ppm install
      then you'll need to add the sisyphusion repo to the list.
      There's probably a command to do that, but I simply inserted:
      <REPOSITORY LOCATION="" NAME="Sisyphusion +" SUMMARYFILE="searchsummary.ppm" />
      just under the 2 existing "REPOSITORY LOCATION" entries in perl/vendor/lib/ppm.xml.

      Alternatively you can just run through the dependencies as separate installs:
      ppm install ppm install ppm install +d ppm install +d ppm install ppm install +G_dll.ppd ppm install
      (Of course, you might find a more appealing solution before you ever get to try this ppm package out. That wouldn't upset me in any way at all.)


        That's excellent! Again, a huge amount of thanks. I only wish I could give you more upvotes.

        After looking at all the other suggestions, and taking my own investigations into account, I think I'm pretty much sold on Image::LibRSVG for this project.

        — Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1188744]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-07-18 09:15 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (388 votes). Check out past polls.