试图更新Windows机器上的一些宝石,我不断获得没有预编译二进制文件的宝石的错误输出:
提供的配置选项:
Run Code Online (Sandbox Code Playgroud)--with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --srcdir=. --curdir --ruby=c:/server/ruby/bin/ruby
这些是在安装gem期间提供给extconf.rb ruby文件的配置选项.
我安装了MinGW,所以我应该拥有安装,制作和编译这些宝石所需的一切.
但是,我不知道如何更改RubyGems的配置,以便在调用extconf.rb时它包含指向MinGW include目录的相应选项.
我试图用一些阴影将一些文本注释到基本图像上.我不喜欢使用-shadow选项获得的结果,所以我放下文本,模糊它,然后再次将文本放在白色,偏离阴影的几个像素.这是我正在使用的命令:
convert base_image.jpg \
-font TT0590M_.ttf \
-fill gray30 \
-annotate +0+0 '' -gravity North \
-annotate +72+32 'ABCDEFGHIJKLM' \
-blur 0x4 \
-fill white \
-annotate +72+27 'ABCDEFGHIJKLM' \
combined.png
Run Code Online (Sandbox Code Playgroud)
我的问题是-blur选项不仅模糊了第一层文本,还模糊了底层基本图像.我只希望第一层文字模糊,而不是基本图像.
我读了一些关于使用堆栈的内容,并尝试使用\( \)该部分隔离第一层文本和模糊命令,如下所示:
convert base_image.jpg \
-font TT0590M_.ttf \
-fill gray30 \
-annotate +0+0 '' -gravity North \
\( -annotate +72+32 'ABCDEFGHIJKLM' \
-blur 0x4 \) \
-fill white \
-annotate +72+27 'ABCDEFGHIJKLM' \
combined.png
Run Code Online (Sandbox Code Playgroud)
结果是相同的 - 文本阴影和底层基础图像都变得模糊.我恐怕我没有太多的运气理解堆栈或我应该使用什么其他命令来获得我所追求的效果.
annotate ×1
blur ×1
extconf.rb ×1
imagemagick ×1
makefile ×1
ruby ×1
rubygems ×1
stack ×1
text ×1
windows ×1