Changeset 32192
- Timestamp:
- 2018-05-29T10:07:32+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ImageConverter.pm
r32184 r32192 407 407 408 408 # Extract Thumbnail metadata from convert output 409 if ($result =~ m/[0-9]+x[0-9]+=>([0-9]+)x([0-9]+)/) {409 if ($result_str =~ m/[0-9]+x[0-9]+=>([0-9]+)x([0-9]+)/) { 410 410 $doc_obj->add_metadata ($section, "ThumbWidth", $1); 411 411 $doc_obj->add_metadata ($section, "ThumbHeight", $2); … … 451 451 452 452 # get screenview dimensions, size and type 453 if ($result =~ m/[0-9]+x[0-9]+=>([0-9]+)x([0-9]+)/) {453 if ($result_str =~ m/[0-9]+x[0-9]+=>([0-9]+)x([0-9]+)/) { 454 454 $doc_obj->add_metadata ($section, "ScreenWidth", $1); 455 455 $doc_obj->add_metadata ($section, "ScreenHeight", $2); 456 } elsif ($result =~ m/([0-9]+)x([0-9]+)/) {456 } elsif ($result_str =~ m/([0-9]+)x([0-9]+)/) { 457 457 #if the image hasn't changed size, the previous regex doesn't match 458 458 $doc_obj->add_metadata ($section, "ScreenWidth", $1);
Note:
See TracChangeset
for help on using the changeset viewer.