需要协助选择图片管理工具 [英] Need assistance choosing a image management gem

查看:91
本文介绍了需要协助选择图片管理工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣构建一个基于Rails的系统来处理大量照片的显示和组织.这有点像Flickr,但更小.每张照片都将具有与其关联的元数据.照片将显示在可选列表和网格视图中.能够按需加载图像会很好,因为这样可能会加快速度.

I am interested in building a Rails based system for handling the display and organization of large amounts of photos. This is sort of like Flickr but smaller. Each photo will have metadata associated with it. Photos will be shown in a selectable list and grid view. It would be nice to be able to load images as they are needed as well (as this would probably speed things up).

目前,我有一个数据库的测试版本,该版本通过从assets/images目录加载图像来工作,但是在显示多个图像(200-600张图像)时,它开始运行缓慢.这是由于我的视图设置方式.我正在使用直线循环以列表和网格布局显示图像.

At the moment I have a test version of my database working by images loading from the assets/images directory but it is beginning to run slow when displaying several images (200-600 images). This is due to the way I have my view setup. I am using a straight loop to display the images in both list and grid layouts.

我还从完整尺寸的源图像中手动调整了缩略图和中等尺寸的图像的大小.我正在研究其他调整大小的方法.这里也有任何建议.

I also manually resized the thumbnails and a medium sized image from a full sized source image. I am investigating other resizing methods. Any advice is appreciated here as well.

当我刚开始使用这种方式处理图像时,有人可以根据经验来设计和实现Flickr之类的东西吗?

As I am new to handling the images this way, could someone point me in a direction based on experience designing and implementing something like Flickr?

我正在研究以下工具:

  1. 回形针
  1. Paperclip
    • http://railscasts.com/episodes/134-paperclip
    • Requirements: ImageMajick
  • http://cloudinary.com/blog/ruby_on_rails_image_uploads_with_carrierwave_and_cloudinary
  • http://cloudinary.com/blog/advanced_image_transformations_in_the_cloud_with_carrierwave_cloudinary

推荐答案

我每天都会和Carrierwave一起去.它非常灵活,并且具有许多有用的策略.它是在Uploader类上生成的,并具有所有漂亮的和自我解释的功能,例如自动生成缩略图(由您指定),黑名单,格式化图像,尺寸限制等;您可以使用它.

I'd go with Carrierwave anyday. It is very flexible and has lot of useful strategies. It generates it's on Uploader class and has all nifty and self explanatory features such as automatic generation of thumbnails (as specified by you), blacklisting, formatting image, size constraints etc; which you can put to your use.

Ryan Bates撰写的本Railscast- http://railscasts.com/episodes/253-如果您还没看过,carrierwave-file-uploads 非常有用.

This Railscast by Ryan Bates - http://railscasts.com/episodes/253-carrierwave-file-uploads is very useful, if you haven't seen it already.

这篇关于需要协助选择图片管理工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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