小编Vij*_*pal的帖子

如何将convert命令更改为python代码

我在我的项目中使用 Imagemagick 进行图像增强。由于我是 Imagemagick 的新手,因此我开始使用此包的命令行参数。为了进一步处理,我需要将以下命令更改为Python代码。

convert sample.jpg -blur 2x1 -sharpen 0x3 -sharpen 0x3 -quality 100 -morphology erode diamond -auto-orient -enhance -contrast -contrast-stretch 0 -gamma .45455 -unsharp 0.25x0.25+8+0.065 -fuzz 2% output.jpg
Run Code Online (Sandbox Code Playgroud)

我认为使用 wand 包是可能的。但是是否可以转换上述命令中使用的所有参数。任何帮助深表感谢。谢谢

python python-2.7 imagemagick-convert wand

5
推荐指数
1
解决办法
7434
查看次数

执行 django sphinx 时出错

我已经为我的项目安装了 django sphinx。成功安装和 sphinx 快速启动操作后,我尝试使用命令“make html”在“build”文件夹中创建 html,它给了我错误“make: * No rule to make target `html'。停止。”。任何帮助..提前致谢。

django python-sphinx

3
推荐指数
1
解决办法
3956
查看次数