使用流程逻辑跳过 Transloadit 装配中的一个步骤?

Use flow logic to skip a step in Transloadit assembly?

如果上传的文件不是JPG,是否可以使用Transloadit中的流程逻辑或文件过滤将PNG转换为JPG,否则跳过该步骤继续其他处理步骤?

根据我从文档中看到的内容,您只能在满足或不满足条件时停止程序集..

谢谢!

如果符合您的条件,您可以使用 /file/filter 机器人将 :original 文件仅传递到 /image/resize 步骤。

您应该禁用 error_on_decline 以无缝过滤。

这里有关于 /file/filter robot and here are all the variables you can use to filter by 的更多信息。

看起来你可以使用 ${file.ext} 或者 ${file.mime}

希望对您有所帮助!