fix exif test
This commit is contained in:
parent
bf9bd2f0d2
commit
a8dab0ac03
1 changed files with 4 additions and 2 deletions
|
|
@ -46,7 +46,10 @@ my $photo
|
||||||
{ skipAutoCommitWorkflows => 1 },
|
{ skipAutoCommitWorkflows => 1 },
|
||||||
);
|
);
|
||||||
$versionTag->commit;
|
$versionTag->commit;
|
||||||
my $exif = ImageInfo( WebGUI::Test->getTestCollateralPath("lamp.jpg") );
|
|
||||||
|
$photo->setFile( WebGUI::Test->getTestCollateralPath("lamp.jpg") );
|
||||||
|
|
||||||
|
my $exif = ImageInfo( $photo->getStorageLocation->getPath($photo->get('filename')) );
|
||||||
# Sanitize Exif data by removing keys with references as values
|
# Sanitize Exif data by removing keys with references as values
|
||||||
for my $key ( keys %$exif ) {
|
for my $key ( keys %$exif ) {
|
||||||
if ( ref $exif->{$key} ) {
|
if ( ref $exif->{$key} ) {
|
||||||
|
|
@ -58,7 +61,6 @@ for my $key ( qw{ Directory } ) {
|
||||||
delete $exif->{ $key };
|
delete $exif->{ $key };
|
||||||
}
|
}
|
||||||
|
|
||||||
$photo->setFile( WebGUI::Test->getTestCollateralPath("lamp.jpg") );
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue