View Issue Details

IDProjectCategoryView StatusLast Update
0003642OXID eShop (all versions)4.11. Image handlingpublic2023-11-20 10:04
Reportertjungcl Assigned To 
Status closedResolutionunable to reproduce 
Product Version4.5.8 revision 42471 
Fixed in Version7.0.0 
Summary0003642: bug in php causes imagecopyresampled to produce artifacts in images
Descriptionthere is a php bug
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.

TagsImage Conversion
Attached Files
stripes.jpg (4,721 bytes)   
stripes.jpg (4,721 bytes)   
stripes_vis.jpg (9,996 bytes)   
stripes_vis.jpg (9,996 bytes)   
imagick.jpg (2,533 bytes)   
imagick.jpg (2,533 bytes)   
imagick_vis.jpg (3,597 bytes)   
imagick_vis.jpg (3,597 bytes)   
ThemeNot defined
PHP VersionNot defined
Database VersionNot defined


related to 0003194 resolvedIgor Iegupov transparent gif looses transparency when generated to different size 



2012-02-28 16:57

reporter   ~0005827

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.


2012-03-02 09:49

reporter   ~0005863

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.


2012-03-02 10:22

reporter   ~0005865

@Developers: please check if we can use this imagick lib.


2023-11-16 12:28

administrator   ~0015758

From I would say this was finally fixed in 2021


2023-11-16 15:16

administrator   ~0015767

Last edited: 2023-11-16 15:17

It's not reproducible anymore.
Shop: 7.0.0
PHP. 8.1.20