Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windows下,convert不识别单引号的-resize参数 #1

Open
@NoAnyLove

Description

Windows下用Rake编译时,调用的convert命令是:

convert -auto-level -flatten -resize '600>' commercial-products/new-private-repository.xcf ../images/commercial-products/new-private-repository.png

报错:

convert.exe: InvalidArgument `-resize': '600 @ error/convert.c/ConvertImageCommand/2555.

不能识别单引号的resize参数,需要使用双引号:

convert -auto-level -flatten -resize "600>" commercial-products/new-private-repository.xcf ../images/commercial-products/new-private-repository.png

我这里把Rake第32和35行改成双引号之后,能够正常编译。但是因为没装Linux,所以不知道这样改了之后,在Linux下运行会不会出错

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /