in reply to Tk photo display: memory never released

I'm missing some Tk related best practice?

:D hehe avoid Tk? :P

Re: how to free memory allocated for Tk::Photo?

Bug #29640 for Tk: Memory Issus with TK::Photo and -data option

  • Comment on Re: Tk photo display: memory never released

Replies are listed 'Best First'.
Re^2: Tk photo display: memory never released
by Anonymous Monk on Jul 04, 2016 at 09:58 UTC
    no permanent growth with this one
    #~ $image = $phwin->Photo(-file => $pic_file ); $image->read($pic_file, -shrink );
      thanks Anonymous Monk,

      so the only way to efficiently load into a Tk::Photo object it is giving to it a filename to read ?

      What I can do if i want to manipulate the image before displaying it? I've used in the original program GD and Image::Resize to handle rotation, for example, but this implies that i'll later pass the photo's data as MIME::Base64 encoded string into the -data => part of the Tk::Photo configure.

      Thanks for your help

      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.
        Temporary files? You'll have to try both/all and see what happens :)
Re^2: Tk photo display: memory never released
by Discipulus (Canon) on Jul 04, 2016 at 10:12 UTC
    thanks for the links you provided

    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.