http://www.perlmonks.org?node_id=182189


in reply to Re: TK Photo Cam - Memory Leak
in thread TK Photo Cam - Memory Leak

You might try the Tk::Photo attribute '-subsample', to get the image to reduce by literally removing every x pixel from the image. You might also use ImageMagick (which has perl modules available and works on both Windows and Linux/Unix) to resize the image (I'm not sure if there is a way to use ImageMagick on data in memory, I've only ever used it on files).