How can i stop console windows from popping up when i call a command in backticks? Im using nconvert to manupulate images and it pops up a console window. Ive tried using Win32::Console with the free option and cannot get it to work.
here is my code with win32::console:
This code is inside a Tk gui and when a button is pressed it changes either rotation,brightness, or contrast. All are increased by 10 when pressed.
if there is a better way to do this im up for suggestions. also perlmagick is not a option for me.
thanks
here is my code with win32::console:
Code:
my $cmd = "nconvert.exe -quiet -rotate $rotation -brigtness $brightness -contrast $contrast -o $out_file $in_file";
my $results = Win32::GUI->new($cmd);
$results->Hide();
This code is inside a Tk gui and when a button is pressed it changes either rotation,brightness, or contrast. All are increased by 10 when pressed.
if there is a better way to do this im up for suggestions. also perlmagick is not a option for me.
thanks