[Bio] / FigKernelPackages / gd_tree_0.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/gd_tree_0.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Sat Feb 6 01:30:44 2010 UTC revision 1.4, Sat Feb 6 23:01:21 2010 UTC
# Line 57  Line 57 
57    
58      sub gd_has_jpg      sub gd_has_jpg
59      {      {
60            return 1;
61          return $has_jpg if defined $has_jpg;          return $has_jpg if defined $has_jpg;
62          return $has_jpg = $has{ jpg } if keys %has;          return $has_jpg = $has{ jpg } if keys %has;
63          my $image = new GD::Image( 1, 1 );          my $image = new GD::Image( 1, 1 );
64          $image->colorAllocate( 255, 255, 255 );          $image->colorAllocate( 255, 255, 255 );
65          $has_jpg = 0;          $has_jpg = 0;
66          eval { $image->jpg; $has_jpg = 1; };          eval { $image->jpeg; $has_jpg = 1; };
67          $has_jpg;          $has_jpg;
68      }      }
69    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3