Ignore:
Timestamp:
11/09/08 11:28:31 (4 years ago)
Author:
RobManson
Message:

Item38: Moved from system() to ->sysCommand()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PhotoarchivePlugin/lib/TWiki/Plugins/PhotoarchivePlugin.pm

    r253 r476  
    3535 
    3636#use TWiki::Plugins::PhotoarchivePlugin::; 
    37 #use TWiki::Func; 
     37use TWiki::Func; 
    3838#use CGI; 
    3939 
     
    389389 
    390390                        # create descripted images 
    391                         system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     391                        #system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     392                        #       "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcedescripted\""); 
     393                        $sandbox->sysCommand("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
    392394                                "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcedescripted\""); 
    393395                } 
     
    567569 
    568570                # create image 
    569                 system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     571                #system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     572                #       "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcedetailed\""); 
     573                $sandbox->sysCommand("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
    570574                        "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcedetailed\""); 
    571575        } 
     
    727731 
    728732                        # create thumbnails 
    729                         system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     733                        #system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     734                        #       "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcethumb\""); 
     735                        $sandbox->sysCommand("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
    730736                                "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$sourcethumb\""); 
    731737                } 
     
    10141020 
    10151021                # create image 
    1016                 system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     1022                #system("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
     1023                #       "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$destimage\""); 
     1024                $sandbox->sysCommand("$bin_anytopnm \"$sourceimage\" 2> /dev/null | ". 
    10171025                        "$bin_pnmscale $pnmwidth $pnmheight | $bin_pnmtojpeg > \"$destimage\""); 
    10181026        } 
Note: See TracChangeset for help on using the changeset viewer.