in reply to Re^3: Tk not recognising GD image
in thread [Solved] Tk not recognising GD image

Hello,

a doubt still remains: I confirm this behaviour (and it sounds strange):

> This code works when used on a file smaller than the screen. On a larger file, it fails ..

Why it works for smaller files and need to be encoded for larger ones?

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.

Replies are listed 'Best First'.
Re^5: Tk not recognising GD image -- further doubts
by davies (Monsignor) on May 09, 2022 at 09:09 UTC
    $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

      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.