Changeset 2207
- Timestamp:
- 2001-03-20T15:58:54+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ImagePlug.pm
r1758 r2207 34 34 use strict; 35 35 36 sub print_ general_usage {36 sub print_usage { 37 37 my ($plugin_name) = @_; 38 38 39 print STDERR "\n usage: plugin $plugin_name [options]\n\n"; 40 print STDERR " -noscaleup Don't scale up small images when making thumbnails\n"; 41 print STDERR " -thumbnailtype s Make thumbnails in format 's'\n"; 42 print STDERR " -thumbnailsize n Make thumbnails of size nxn\n"; 43 print STDERR " -convertto s Convert main inage to (gif|png|jpg)\n"; 44 print STDERR " -minimumsize n Ignore images smaller than n bytes\n"; 45 print STDERR "\n"; 39 print STDERR " 40 usage: plugin ImagePlug [options] 41 42 -noscaleup Don't scale up small images when making thumbnails 43 44 -thumbnailtype s Make thumbnails in format 's' 45 46 -thumbnailsize n Make thumbnails of size nxn 47 48 -convertto s Convert main inage to (gif|png|jpg) 49 50 -minimumsize n Ignore images smaller than n bytes 51 52 " 46 53 } 47 54 … … 50 57 my $plugin_name = shift (@_); 51 58 my $self = new BasPlug ("ImagePlug", @_); 52 # general options available to all plugins53 59 54 60 if (!parsargv::parse(\@_, … … 60 66 "allow_extra_options")) { 61 67 62 print STDERR "\n The $plugin_name plugin uses an incorrect general option (general options are those\n";63 print STDERR " available to all plugins).Check your collect.cfg configuration file.\n";64 &print_ general_usage($plugin_name);68 print STDERR "\nImagePlug uses an incorrect option.\n"; 69 print STDERR "Check your collect.cfg configuration file.\n"; 70 &print_usage($plugin_name); 65 71 die "\n"; 66 72 } … … 258 264 $doc_obj->set_OID(); 259 265 260 #$doc_obj->add_text($section, "<pre>\n$text\n</pre>");266 # $doc_obj->add_text($section, "<pre>\n$text\n</pre>"); 261 267 262 268 # process the document … … 272 278 } 273 279 274 return $result; # processed the file280 return 1; 275 281 } 276 282
Note:
See TracChangeset
for help on using the changeset viewer.