Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Reflections on graphic screwing!

by zentara (Archbishop)
on Apr 02, 2017 at 13:00 UTC ( [id://1186710]=note: print w/replies, xml ) Need Help??


in reply to Reflections on graphic screwing!

Hi, nice code, but it seems geared toward a Window's machine. In the interests of newbies, and linux users, the last lines
open O, '>:raw', $fname or die $!; print O $im->png; close O; system $fname;
can be changed to the following
open(GD, ">$0.png") or die; binmode GD; print GD $im->png; close GD;
That will print it to a conveniently named file instead of trying to display it.
0m, zentara

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Reflections on graphic screwing!
by BrowserUk (Patriarch) on Apr 02, 2017 at 14:32 UTC

    My version also prints to a file (named with the input parameters for reference; but perhaps not so convenient), and then displays it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found