- Timestamp:
- 2013-05-30T15:20:33+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ImageConverter.pm
r27354 r27519 33 33 34 34 use util; 35 use FileUtils; 35 36 use gsprintf 'gsprintf'; 36 37 … … 232 233 # check the size of the image against minimum size if specified 233 234 my $minimumsize = $self->{'minimumsize'}; 234 if (defined $minimumsize && ( -s $filename_full_path< $minimumsize)) {235 if (defined $minimumsize && (&FileUtils::fileSize($filename_full_path) < $minimumsize)) { 235 236 print $outhandle "ImageConverter: \"$filename_full_path\" too small, skipping\n" 236 237 if ($verbosity > 1); … … 319 320 #overwrite the ones added in BasePlugin 320 321 $doc_obj->set_metadata_element ($section, "FileFormat", $type); 321 my $sys_file_size = -s $filename_full_path;322 my $sys_file_size = &FileUtils::fileSize($filename_full_path); 322 323 $doc_obj->set_metadata_element ($section, "FileSize", $sys_file_size); #$image_size); 323 324
Note:
See TracChangeset
for help on using the changeset viewer.