Bug 8088 - Png-images of covers lost transparency
Summary: Png-images of covers lost transparency
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 20:35 UTC by Serhij Dubyk
Modified: 2016-10-03 15:28 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Small changes in C4/Images.pm (1.53 KB, patch)
2012-05-14 20:39 UTC, Serhij Dubyk
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Serhij Dubyk 2012-05-14 20:35:16 UTC
Images of covers must preserve transparency of png-images. This is useful for example for the covers of CD/DVD disks.
Comment 1 Serhij Dubyk 2012-05-14 20:39:18 UTC
Created attachment 9573 [details] [review]
Small changes in C4/Images.pm

Replace 
 my $newimage = $image->clone;
by
 my $newimage = GD::Image->new( $width_reduce, $height_reduce, 1 );    
 $newimage->alphaBlending(0);
 $newimage->saveAlpha(1);
Comment 2 Chris Cormack 2012-05-20 09:26:32 UTC
I like the idea, but do we need the commented out transparency lines? 

Can we safely remove those?
Comment 3 Chris Cormack 2012-07-15 09:50:49 UTC
Still waiting on answer to the question before signoff
Comment 4 Serhij Dubyk 2013-03-03 18:08:32 UTC
(In reply to comment #2)
> I like the idea, but do we need the commented out transparency lines? 
> 
> Can we safely remove those?

Yes.
Comment 5 Marc Véron 2016-10-03 15:28:53 UTC
Still valid?