From e502ee15fc892c34c8a0e41b294c92a82281622e Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" Date: Tue, 14 Nov 2006 20:24:19 +0000 Subject: [PATCH] Removed check for uncompressed images on 2.20 branch since this paramater was added in 2.22 git-svn-id: svn://10.0.0.236/branches/TESTOPIA-1-BUGZILLA-220@215270 18797224-902f-48f8-a5cc-f745e15eee43 --- .../testopia/Bugzilla/Testopia/Attachment.pm | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mozilla/webtools/testopia/Bugzilla/Testopia/Attachment.pm b/mozilla/webtools/testopia/Bugzilla/Testopia/Attachment.pm index 0482513358e..2f8427db8a0 100644 --- a/mozilla/webtools/testopia/Bugzilla/Testopia/Attachment.pm +++ b/mozilla/webtools/testopia/Bugzilla/Testopia/Attachment.pm @@ -181,21 +181,6 @@ sub _validate_data { my $maxsize = Param('maxattachmentsize'); $maxsize *= 1024; # Convert from K - # Windows screenshots are usually uncompressed BMP files which - # makes for a quick way to eat up disk space. Let's compress them. - # We do this before we check the size since the uncompressed version - # could easily be greater than maxattachmentsize. - if (Param('convert_uncompressed_images') - && $self->{'mime_type'} eq 'image/bmp'){ - require Image::Magick; - my $img = Image::Magick->new(magick=>'bmp'); - $img->BlobToImage($self->{'contents'}); - $img->set(magick=>'png'); - my $imgdata = $img->ImageToBlob(); - $self->{'contents'} = $imgdata; - $self->{'contenttype'} = 'image/png'; - } - # Make sure the attachment does not exceed the maximum permitted size my $len = $self->{'contents'} ? length($self->{'contents'}) : 0; if ($maxsize && $len > $maxsize) {