norman / has_image

A lightweight and opinionated but hackable library for attaching images to ActiveRecord models.

This URL has Read+Write access

Norman Clarke (author)
Wed Oct 22 06:59:24 -0700 2008
commit  756d467405fc9cc7c275bd479f8d79eff1480b11
tree    d3846bbc30129a9f1eb88c30e26d3d25cb2908c2
parent  cb5ffb6f02bc7d7439b2e195a88c9851f93812ec
has_image / CHANGELOG
100644 61 lines (46 sloc) 2.556 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
2008-10-09 Dima Sabanin <sdmitry@gmail.com>
  * Fixed display of images with special symbols in the name,
    like '2777-nipple-+-apple-napple.jpg'. + is reserved by HTTP.
    Now escaping filenames before giving them back in #public_path()
 
2008-09-10 Norman Clarke <norman@randomba.org>
  * Fixed images not being converted to target format.
  
2008-08-29 Norman Clarke <norman@randomba.org>
  * Fixed bad call to has_image_file
  
2008-08-28 Norman Clarke <norman@randomba.org>
  * Added ability to regenerate a model's thumbnails.
  * Changed a few methods in storage to accept the model rather than the id.
    This makes storage more hackable as regards generating paths and file names.
  * Added "has_image_id" method to model instance methods to facilitate
    grouping the images under a directory structure based on a related model's
    ids.
  * Made the generated file name simply by the image object's id - this
    is better adherance to the principle of least surprise.
 
2008-08-25 Norman Clarke <norman@randomba.org>
  * Fixed bad call to resize_to in view helper.
 
2008-08-19 Norman Clarke <norman@randomba.org>
  * Made storage work more correctly with tempfiles.
  
2008-08-18 Norman Clarke <norman@randomba.org>
  * Fixed ability to set the path for storing image files.
 
2008-08-1 Adrian Mugnolo <adrian@randomba.org>
  * Improved partitioned path handling to avoid collisions when the id is
    very high, which can happen if you use db:fixtures:load.
 
2008-08-1 Norman Clarke <norman@randomba.org>
  * Fixed a bug where overwriting a previous image triggered callbacks more
    than once, causing errors.
 
2008-07-29 Norman Clarke <norman@randomba.org>
 
  * Downcased generated file names to avoid potential issues on
    case-insensitive filesystems.
  * Added "absolute path" method to model instances.
  * Made image deletion nullify the "has_image_file" field.
  * Added "has_image?" method to model instances.
  * Fixed ENONENT error with record update when there are no images yet.
  * Reverted thumbnail sorting feature - it's fast but makes terrible quality
    thumbnails. It's just not worth it.
 
2008-07-28 Norman Clarke <norman@randomba.org>
 
  * Added sorted thumbnail processing. This improves thumbnail generation
    speed by about 25% for 4.5 meg jpegs with 5 thumbnails.
  * Fixed broken resize for non-fixed-width thumbnails.
  * Added check for bad geometry strings.
  * Added dependencies and Rubyforge project to gemspec, updated docs.
 
2008-07-25 Norman Clarke <norman@randomba.org>
 
* First public release.