VasiliZadoff Posted April 11, 2012 Report Share Posted April 11, 2012 Если водяной знак накладывать на jpeg, то все нормально.Если накладывать на png или gif, то водяной знак замещает собой часть картинки. И на картинке получается дыра в том месте, где должен быть прозрачный watermark.Подскажите, как побороть данную проблему. Quote Link to post Share on other sites
andrewftl Posted April 11, 2012 Report Share Posted April 11, 2012 ДА! есть такая проблема! Не думаю, что ее можно както решить... Quote Link to post Share on other sites
gako Posted April 11, 2012 Report Share Posted April 11, 2012 а водяной знак в каком формате? gif? Quote Link to post Share on other sites
VasiliZadoff Posted April 11, 2012 Author Report Share Posted April 11, 2012 Водяной знак в формате png. Quote Link to post Share on other sites
Kostyafan Posted January 10, 2014 Report Share Posted January 10, 2014 Здравствуйте! Вы смогли решить данную проблему? У меня схожая ситуацияhttp://forum.simplacms.ru/topic/6464-%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%BD%D0%BE%D0%B5-%D0%BE%D1%82%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-%D0%B2%D0%BE%D1%82%D0%B5%D1%80%D0%BC%D0%B0%D1%80%D0%BA%D0%B8/ Quote Link to post Share on other sites
larenso Posted September 6, 2017 Report Share Posted September 6, 2017 Не нашлось решение этой проблемы? Quote Link to post Share on other sites
Tetra Posted December 18, 2017 Report Share Posted December 18, 2017 Всё реально. Проблема наблюдалась когда некоторые картинки были в RGB, другие - в CMYK. Решается двумя строчками: if ($thumb->getImageColorspace() == Imagick::COLORSPACE_CMYK) { $thumb->transformimagecolorspace(Imagick::COLORSPACE_SRGB); }Примерно на 365 строке. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.