Ignore:
Timestamp:
2004-09-15T16:18:06+12:00 (20 years ago)
Author:
chi
Message:

Add the "FileFormat" metadata to each of the Plugins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ImagePlug.pm

    r7555 r8121  
    152152    my $type = "unknown";
    153153
     154
    154155    if ($converttotype ne "" && $filename =~ m/$converttotype$/) {
    155156
     
    179180
    180181    $self->title_fallback($doc_obj,$section,$file);
    181     $doc_obj->add_metadata ($section, "FileFormat", $type);
    182182
    183183    my ($image_type, $image_width, $image_height, $image_size)
    184184    = &identify($filename, $outhandle, $verbosity);
     185
     186    if ($image_type ne " ") {
     187    $type = $image_type;
     188    }
     189   
     190    $doc_obj->add_metadata ($section, "FileFormat", $type);
    185191
    186192    $doc_obj->add_metadata ($section, "ImageType",   $image_type);
     
    189195    $doc_obj->add_metadata ($section, "ImageSize",   $image_size);
    190196
    191    
    192197    $doc_obj->add_metadata ($section, "srclink",
    193198                "<a href=_httpcollection_/index/assoc/[assocfilepath]/[Image]>");
Note: See TracChangeset for help on using the changeset viewer.