imagick纯色背景不着色
尝试在调用该缩略图时为其指定黑色背景。 即使我更改 RGBA 值,它总是会产生白色背景...我做错了什么?
$imagick->setbackgroundcolor(new ImagickPixel( "rgba(0,0,0,1.00)" ) );
$imagick->thumbnailImage(200, 200, true, true);
$imagick->writeImages(ABSROOT.'/thumbs/'. $fileID.'_Small.jpg' ,true ); ```
trying to assign a black background to this thumbnail while it is being scalled.
It always produces a white background even when I change the RGBA values... What am I doign wrong?
$imagick->setbackgroundcolor(new ImagickPixel( "rgba(0,0,0,1.00)" ) );
$imagick->thumbnailImage(200, 200, true, true);
$imagick->writeImages(ABSROOT.'/thumbs/'. $fileID.'_Small.jpg' ,true ); ```
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论