开发者

Make image transparent in ruby

开发者 https://www.devze.com 2022-12-13 09:00 出处:网络
I was wondering if anyone could suggest to me potential libraries in ruby for manipulating jpe开发者_运维百科gs? Specifically I want to make the image 50% transparent so it can act as an overlay. The

I was wondering if anyone could suggest to me potential libraries in ruby for manipulating jpe开发者_运维百科gs? Specifically I want to make the image 50% transparent so it can act as an overlay. The image in question would be of a house and I'd like it to overlay a village image.

Just being specific about the image as the transforms may not like multiple colours :)


Take a look at RMagick. This tutorial features transparency/opacity.

Best wishes,
Fabian


Check out RMagick

0

精彩评论

暂无评论...
验证码 换一张
取 消