rails paperclip and passenger `is not recognized by the 'identify' command`

前端 未结 14 965
终归单人心
终归单人心 2020-11-28 06:37

When I upload a photo, my model fails validation, err well even without any validations I\'m returned this error:

/tmp/stream20100103-13830-ywmerx-0 is not r         


        
14条回答
  •  离开以前
    2020-11-28 06:57

    if your are trying to upload a video, then probably, 'identify' tries to delegate the work to ffmpeg. example

       identify Desktop/00-ScalingRails-Introduction.mp4      [alaa@Zero>/home/alaa]
       identify: delegate failed `"ffmpeg" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1061.
       identify: unable to open image `/tmp/magick-XXHF4ImT.pam':  @ error/blob.c/OpenBlob/2498
    

    in this example, installing ffmpeg removed the error message from the list of validation errors

提交回复
热议问题