[EXTENSION] Img
Image management made easy!

It's been a while since I released my Rights module so I thought it was about time to give something new to the community. So, here it is, my newest module, Img.

Img is an image manager which allows for saving, loading, deleting and versioning of images in your Yii application. Images are stored both on the hard-drive and in the database. The module utilizes the PHPThumb library to provide a wide range of image transformation options.

Img comes with an installer so it's very easy to set up and you should have it up and running in no time. Here's a list of the features:

Hi, Chris this is Bonnie again. I tried using the module to upload and display the images as you said but I don't see any file downloaded only my values for the auto listings. Also on the display the constant does not work. If you need I can post my code to see how am using it. I use CmultipleUpload widget for uploading. Thanks again. I really need help to get it working or if anybody has succeeded please help.

I had the same problem as josez, same fix temporarily helped me out as well after trying image and tbl_image and tbl_Image as well.
(my prefix is tbl_) If I'm not mistaken, the convention for table names is lowercase.

Thanks for your module. I've just gotten it to work fully and have some suggestions:

1. saving a file name with just the id hurts the SEO value of the img file name
2. speaking of SEO, alt and title might be good additions (though maybe out of scope for your project?)
3. i'd love to see some type of easy rendering function that possibly worked with a lightbox type solution

As I understand you position this module as common way to manage all application images. If this is right, I want to ask about your willing to create some storing mechanism to distribute images files by different directories to avoid server loading when count is over ~1000 or more files in one directory.

Maybe I did not figured how it works. What about caching created images? Will it always be recreated on each request?

Class ImgManager is declared as a child of CApplicationComponent, but in the ImgManager::init() method you don't call parent::init(). Is this the same as should be?

I've started to use this and I noticed that some of the image conversions were a bit low quality - so I amended the phpThumb library to start using ImageMagick (instead of GD). Unfortunately this does not seem to work; i'm using auto-resizing of images (when called).