View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003642 | OXID eShop (all versions) | 4.11. Image handling | public | 2012-02-28 16:02 | 2023-11-20 10:04 |
Reporter | tjungcl | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Product Version | 4.5.8 revision 42471 | ||||
Fixed in Version | 7.0.0 | ||||
Summary | 0003642: bug in php causes imagecopyresampled to produce artifacts in images | ||||
Description | there is a php bug https://bugs.php.net/bug.php?id=41820 that is not fixed for nearly five years now. it occures not on every machine (on ours it does, of course...) but if you have it, its most annoying: --> pictures with white backgrounds (as most shops use) have no longer a white background, but one that is striped in #FFFFFF and #FEFEFE. My own eye-sight wasnt sharp enough to notice this, but several of our designes and photographs did, so it cant be argumented away... I did not find a workaround for this with gd2, but i tried imagicks resizing function thumbnailImage() and that solved the problem. (I define resizeJpeg() in my functions.php). => its solved for me now, but you should consider to check for the lib imagick and use it if present. | ||||
Tags | Image Conversion | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0003194 | resolved | Igor Iegupov | transparent gif looses transparency when generated to different size |
|
I added a example image, where you see the effect. This image is copied from the webshop as result of imagecopyresampled(). In the second image the contrast is raised and the brightness reduced to visualize it better. |
|
added the same image, this time scaled down with imagemagick instead. Quality setting in imagemagick is 90% (in gd2 95%), because base quality in imagick is generally better. |
|
@Developers: please check if we can use this imagick lib. |
|
From https://bugs.php.net/bug.php?id=53580 I would say this was finally fixed in 2021 |
|
It's not reproducible anymore. Shop: 7.0.0 PHP. 8.1.20 -MK |