Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Tk not recognising GD image -- further doubts

by davies (Prior)
on May 09, 2022 at 09:09 UTC ( [id://11143688]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Tk not recognising GD image -- further doubts
in thread [Solved] Tk not recognising GD image

$imtk = $mw->Photo(-data => $imgd->jpeg(), -format => 'jpeg'); } else { $imtk = $mw->Photo(-file => $file, -format => 'jpeg');

The command is different, using the file directly via the file option rather than data. Larger files have to be resized to fit. I was thinking of using a temporary file as a workaround.

Regards,

John Davies

Replies are listed 'Best First'.
Re^6: Tk not recognising GD image -- further doubts
by Discipulus (Canon) on May 09, 2022 at 09:19 UTC
    AH!

    I'm smarter sathurday night than monday in the morning :)

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-19 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found