User tests: Successful: Unsuccessful:
Rebased to staging branch #2116
Description from #2116 (added by @zero-24)
There was a invisible bug in the resize
method that showed up when I've implemented SCALE_FIT functionality - I didn't have time to update last commit like in the Framework, which is attached here. Below is explanation what it's all about.
The class didn't evaluate loaded image be transparent (see fix) and thus was always using imagecopyresampled
function and everything seemed alright.
After the patch resource handle is evaluated to be transparent and imagecopyresized
method produces visually poor results.
After little research I'm not sure, why it's even been used; I hope the author @rvsjoen can say something about it.
It seems that imagecopyresized
is quite faster, but still would be used for wrong reasons.
Other frameworks:
imagecopyresampled
Resources:
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Updated again.
How to test? thanks
I have tested this item unsuccessfully on eac76a4
I was able the reproduce the "visually poor result" before the patch, but the patch itself didn't work either, because the transparency got lost. I'll attach the 2 images that have been generated in the next comment.
I have tested this item unsuccessfully on eac76a4
Picture is no more transparent. the Problem is with and without the patch the same Problem
Original:
https://commons.wikimedia.org/wiki/File:Tibia_insulaechorab_transparent.png
Tested on 3.4.5 with PHP 5.4.38.
I tested under PHP Version 5.6.8
Hello @piotr-cz
Thank you for your contribution.
The last comment here was on 24th October 2015. So the question is, Is this issue/pull request still valid?
If no reply is received within 4 weeks we will close this issue.
Thanks for understanding!
Hi this fix is actually from 2013 and I'm not using this Joomla functionality anymore.
As there are two failed tests it looks like this PR doesn't address the problem.
Anyway let's wait suggested 4 weeks before closing it.
There really is no point in waiting. If you're not going to look at the issue to see why your own PR has two failed tests it might as well be closed right now
Thank you for your suggestion but it has been decided that this is not something that will be included in the core of Joomla!.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 14:29:29 |
Closed_By | ⇒ | Kubik-Rubik |
I have tried with png transparent images with this fix it works, can-you fix conflicts in the PR ?