小编Shi*_*334的帖子

imagemagick中的图像圆圈裁剪

伙计们,我正在使用 imagemagick 从图像中裁剪出一个圆圈。但是当我运行这个命令时我什么也没得到:

convert input.jpg +clone -threshold -1 -negate -fill white -draw "circle 539,539 539,0" -alpha off -compose copy_opacity -composite output_circ.jpg
Run Code Online (Sandbox Code Playgroud)

我越来越像一个输出这样

如果我遗漏了什么,请告诉我。

command-line image crop imagemagick

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

我的家没有 .pypirc 文件,这在将 python 包注册到 PyPI 时给我一个错误

我正在使用 ubuntu,我已经创建了一个 python 包,它已经准备好在 PyPI 上注册,但是当我使用python setup.py register它时显示如下错误:

Server response (410): This API is no longer supported, instead simply upload the file.
Run Code Online (Sandbox Code Playgroud)

我知道这是找不到 .pypirc 文件的错误,但我不知道如何解决这个问题,因为我家没有 .pypirc 文件。我们不能创建 pypirc 文件吗?(只是问一下)。当我在 virtualenv 中使用 register 命令时也有一个不同的错误,我得到这个:

Server response (410): Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (located at https://pypi.org/). For more information about migrating your use of this API to PyPI.org, please see …
Run Code Online (Sandbox Code Playgroud)

python ubuntu pypi pypiserver python-packaging

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