Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

"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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-02-13 08:02 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (422 votes), past polls