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

Re: Scale image problems

by SuicideJunkie (Vicar)
on Mar 20, 2013 at 18:02 UTC ( #1024579=note: print w/ replies, xml ) Need Help??


in reply to Scale image problems

$src->scale(xpixels=>400);
"scale() called in void context - scale() returns the scaled image"

Yep. Looks like void context to me too.

Why are you not saving the return value? The message is saying you should do:

my $resized = $src->scale(xpixels=>400);

Which puts the scale in scalar context


Comment on Re: Scale image problems
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-29 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls