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

Transparent background when rotate an image (gd) #231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prokopov-nikolai
Copy link
Contributor

При повороте прозрачного изображения возникал белый фон.
$aParams = $this->Image_BuildParams('media.' . $oMedia->getTargetType());
$sNewFileName = $this->GetImagePathBySize($oMedia->getFilePath(), '300x');
$oImage = $this->Image_OpenFrom($sNewFileName, $aParams);
$oImage->getImage()->rotate(45);
$oImage->save($sNewFileName);

@prokopov-nikolai prokopov-nikolai changed the title Transparent background when rotate image (gd) Transparent background when rotate an image (gd) May 14, 2018
@mzhelskiy
Copy link
Contributor

А можешь эту правку запулить в https://github.com/avalanche123/Imagine ?

@prokopov-nikolai
Copy link
Contributor Author

Попробую!

@prokopov-nikolai
Copy link
Contributor Author

Запулил.

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

Successfully merging this pull request may close these issues.

2 participants