? Failure

User tests: Successful: Unsuccessful:

avatar piotr-cz
piotr-cz
6 Sep 2014

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:

Resources:

avatar piotr-cz piotr-cz - open - 6 Sep 2014
avatar jissues-bot jissues-bot - change - 6 Sep 2014
Labels Added: ?
avatar zero-24 zero-24 - change - 6 Sep 2014
The description was changed
avatar zero-24 zero-24 - change - 6 Sep 2014
Category Libraries
avatar xillibit
xillibit - comment - 20 Dec 2014

I have tried with png transparent images with this fix it works, can-you fix conflicts in the PR ?

avatar piotr-cz
piotr-cz - comment - 22 Dec 2014

Updated again.

avatar designbengel
designbengel - comment - 24 Oct 2015

How to test? thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar SniperSister SniperSister - test_item - 24 Oct 2015 - Tested unsuccessfully
avatar SniperSister
SniperSister - comment - 24 Oct 2015

I have tested this item :red_circle: 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.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar jduerscheid jduerscheid - test_item - 24 Oct 2015 - Tested unsuccessfully
avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

I have tested this item :red_circle: unsuccessfully on eac76a4

Picture is no more transparent. the Problem is with and without the patch the same Problem


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar SniperSister
SniperSister - comment - 24 Oct 2015

Original:
https://commons.wikimedia.org/wiki/File:Tibia_insulaechorab_transparent.png

Before:
screen shot 2015-10-24 at 08 15 35

After:
screen shot 2015-10-24 at 08 15 35

Tested on 3.4.5 with PHP 5.4.38.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

I tested under PHP Version 5.6.8


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar roland-d
roland-d - comment - 14 Apr 2016

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!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar piotr-cz
piotr-cz - comment - 14 Apr 2016

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.

avatar brianteeman
brianteeman - comment - 14 Apr 2016

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

avatar Kubik-Rubik
Kubik-Rubik - comment - 8 May 2016

Thank you for your suggestion but it has been decided that this is not something that will be included in the core of Joomla!.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4234.

avatar Kubik-Rubik Kubik-Rubik - change - 8 May 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 14:29:29
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 8 May 2016

Add a Comment

Login with GitHub to post a comment