Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Image Conversion: SVG to PNG

by syphilis (Archbishop)
on Apr 24, 2017 at 09:10 UTC ( [id://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 5.24.0.1 #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.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Image Conversion: SVG to PNG
by kcott (Archbishop) 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 http://www.sisyphusion.tk/ppm/Image-LibRSVG.ppd
      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="http://www.sisyphusion.tk/ppm" 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 http://www.sisyphusion.tk/ppm/PPM-Sisyphusion.ppd ppm install http://www.sisyphusion.tk/ppm/PPM-Sisyphusion-Glib_dll.ppd ppm install http://www.sisyphusion.tk/ppm/PPM-Sisyphusion-Cairo_dll.pp +d ppm install http://www.sisyphusion.tk/ppm/PPM-Sisyphusion-Pango_dll.pp +d ppm install http://www.sisyphusion.tk/ppm/PPM-Sisyphusion-Gtk2_dll.ppd ppm install http://www.sisyphusion.tk/ppm/PPM-Sisyphusion-Image_LibRSV +G_dll.ppd ppm install http://www.sisyphusion.tk/ppm/Image-LibRSVG.ppd
      (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.)

      Cheers,
      Rob

        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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found