Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image creation issue, PHP7 #550

Open
fbxcelsior opened this issue Mar 6, 2017 · 5 comments
Open

Image creation issue, PHP7 #550

fbxcelsior opened this issue Mar 6, 2017 · 5 comments

Comments

@fbxcelsior
Copy link

fbxcelsior commented Mar 6, 2017

Hi,

I am using imagine in conjunction with sonata media bundle to create custom actions for my uploaded images. Since moving to PHP7 I get a weird effect on one of my custom actions that was previously work correctly.

When creating a new image, on top of which I will be pasting another image, it seems that the background color that I set is always ignored and I get the following outcome instead of the background color being correctly displayed under the pasted image:

thumb_2821_content_image_default

Did anybody encounter this before? This happens to me with v0.6.3.

Thank you in advance,

Filipe

@fbxcelsior fbxcelsior changed the title Image creation Image creation, PHP7 Mar 6, 2017
@fbxcelsior fbxcelsior changed the title Image creation, PHP7 Image creation issue, PHP7 Mar 6, 2017
@fbxcelsior
Copy link
Author

fbxcelsior commented Mar 6, 2017

It seems to be related to GD. Working fine with ImageMagick. Will leave it open in case somebody would like to take a look at it.

Thanks

@fbxcelsior fbxcelsior reopened this Mar 6, 2017
@bpicolo
Copy link

bpicolo commented Mar 15, 2017

Fwiw, the gmagick extension seems to have a number of problems against php 7.0.x. (Every version available segfaults on process teardown)

@mlocati
Copy link
Collaborator

mlocati commented Aug 21, 2018

In order to inspect this issue, we'd need the PHP version, as well as the PHP code.
Without these details this issue can't be inspected further (so it can be closed).

@picks44
Copy link

picks44 commented May 17, 2019

Hi, I got the exact same issue on PHP 7.2. How did you manage to get this sorted @fbxcelsior ?
I have both gd2 (2.2.5) and imagick (3.4.3, with ImageMagick 6.9.7) extension installed and enabled on our server.
I'm using LiipImagineBundle for Symfony and I get this issue when creating a background "around" my source image.
I don't have the issue on my local dev (Windows), only on my pro and test servers (Debian). And we did not have this issue on Debian while using PHP5.6.
Any help/clue here?

@Danack
Copy link

Danack commented Oct 25, 2021

If anyone is still having this issue, the way to investigate it would be to run the PHP script through valgrind, i.e. something like valgrind php debug.php.

This type of graphical glitch is almost certainly reading from unitialized memory, which valgrind detects and gives out errors for. Then it wil probably need reporting upstream in the PHP bug tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants