简体   繁体   English

Cloud上的CarrierWave裁剪文件(雾)

[英]CarrierWave crop file on Cloud (fog)

I am trying to crop an image with CarrierWave and put it on the cloud fog(cloud_files). 我正在尝试使用CarrierWave裁剪图像并将其放在云雾中(cloud_files)。 How can I do this? 我怎样才能做到这一点? Will I have to download a copy as a tempfile, crop that, and then upload it back? 我是否需要将副本下载为临时文件,裁剪后再上传回去?

If the above steps are right, then how would I do them? 如果以上步骤正确,那我该怎么办?

I used this guys setup carrierwave + twitter-bootstrap + jquery-file-upload + JCrop 我用这个家伙设置了carrierwave + twitter-bootstrap + jquery-file-upload + JCrop

The example is an image gallery app that uses jcrop to crop the images and save back via carrierwave. 该示例是一个图片库应用,该应用使用jcrop裁剪图像并通过载波保存回来。

https://github.com/n0ne/Rails-Carrierwave-jQuery-File-Upload https://github.com/n0ne/Rails-Carrierwave-jQuery-File-Upload

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM