进入2013年,我应该选择蜻蜓,回形针还是Carrierwave? [英] Heading into 2013, should I go with Dragonfly or Paperclip or Carrierwave?

查看:86
本文介绍了进入2013年,我应该选择蜻蜓,回形针还是Carrierwave?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是另一个普通的乔,希望跳上社交网络潮流。我想知道应该为我的应用程序用户使用哪种照片上传/调整大小。

I am just another average joe hoping to jump onto the social network bandwagon. I'd like to know which photo uploading/resizing gem I should use for users of my app. It would be great if you could explain why.

推荐答案

载波 对诸如DataMapper,Mongoid,Sequel之类的外部事物具有良好的支持,甚至可以与第三方图像管理(如 cloudinary
该解决方案似乎最全面,几乎涵盖了所有内容,但解决方案也更混乱(至少对我来说),因为您需要处理更多代码。它通过其丰富的社区创建的大量附件来积极维护,以支持许多功能。它还具有来自其他附件解决方案(例如回形针)的迁移说明。它大约有3-4个活跃的贡献者/维护者

Carrierwave has good support for exterior things such as DataMapper, Mongoid, Sequel and even can be used with a 3rd party image managment such as cloudinary The solution seems most complete with support coverage for about anything, but the solution is also much messier (for me at least) since there is a lot more code that you need to handle. It is actively maintained with a plethora of add-ons created by its rich community for support for many features. It also features migration instructions from other attachment solutions such as paperclip. It has about 3-4 active contributors/maintainers

Paperclip 来自Thoughtbot,因此它应该是计划合理,功能齐全且易于处理的附加文件解决方案。它利用了许多内置功能,使在Rail环境中的体验减轻了。对于使用activerecord而非所有其他替代品的有机Rails环境,Paperclip更好。回形针对于刚开始的Rails开发人员来说要容易得多,并且对高级开发人员也具有高级功能。它有大约2-3个活跃的维护者。查看github图表,似乎最近几个月的回形针产量不是很高,提交代码的次数相对较少。希望这种情况能够改变,并且可以与carrierwave相提并论(通常,更多的维护者意味着更多的代码)

Paperclip is from thoughtbot so it should be a well planned, fully featured, easy-to-handle solution for attaching files. It utilizes many built-in functions that make the experience less straining in a Rail environment. Paperclip is better for an organic Rails environment using activerecord and not all the other alternatives. Paperclip is much easier to handle for beginning rails developers and it also has advanced capabilities for the advanced developer. It has about 2-3 active maintainers. Looking at the github graphs, it seems that last few months haven't been very prolific for paperclip, with relatively few commits to the code. Hope this changes and it can be up to par with carrierwave (usually more maintainers mean more code)

Dragonfly 是基于机架的附件解决方案。它对Rails以外的其他框架有很多支持,它有几个外部服务支持插件,但是从其github页面可以看出,仍然缺少很多东西。这可能是由于它拥有1名活跃的维护者,并且自2012年4月以来一直没有提交。如果它没有获得真正的推动,我认为它的寿命不会更长。特别是Rail 4即将面世。

Dragonfly is a rack based attachment solution. It has much support for other frameworks other than Rails, it has several addons for exterior service support but as seen from its github page, a lot is still missing. This is probably due to it having 1 active maintainer and no commit since April 2012. If it doesn't get some real boost, I don't see it living for so much longer. Especially with Rail 4 coming out soon.

最后,每种解决方案都有其优点和缺点,并且每种解决方案对于每个开发人员都是最佳的。

At the end of line, each solution has its pros and cons, and each solution works best for each developer.

请参阅以下列表,其中包括人们对每个人的看法,并确定他们所遇到的问题是否与您有关:

See the following list with what people has to say about each and decide whether the problems they present concern you:

第3个回形针vs载波vs蜻蜓vs Attachment_fu

https://stackoverflow.com/questions/1614842/what-is-the-best-file-upload-attachment-plugin-rails?rq=1

Attachment_fu或Paperclip for Rails3

载波或蜻蜓

要回答您的问题-载波和回形针都可以上传和调整图像大小。

您在评论中提出疑问,我使用回形针,但由于载波能够从回形针迁移到回形针,因此如果不再适合我的需求,我可能会进行切换。

As for you question in the comment, I use paperclip but since carrierwave has a capability to migrate to it from paperclip I might switch if it no longer suits my needs. At the moment it does.

最好的选择方法是选择一个,尝试一下,然后自己决定。

The best way to choose is to pick one, try it, and decide for yourself.

这篇关于进入2013年,我应该选择蜻蜓,回形针还是Carrierwave?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆