Topic: Attachment_fu Thumbnails not working

When I do something like:

mugshot.public_filename(:thumb),

I get the full-size image not the thumbnail.

Does anyone have a fix for this?

I'm using Vista, RMagick and the file system back-end.


Thanks.

Re: Attachment_fu Thumbnails not working

Have you specified

has_attachment :content_type => :image,
                 :storage => :file_system,
                 :max_size => 500.kilobytes,
                 :resize_to => '320x200>',
                 :thumbnails => { :thumb => '100x100>' }

Re: Attachment_fu Thumbnails not working

Yes, I have:

  has_attachment :content_type => :image,
                 :storage => :file_system,
                 :max_size => 2.megabytes,
                 :resize_to => '394x546>',
                 :size => 0.kilobytes..2.megabytes,
                 :thumbnails => { :thumb => '100x100>' }

Re: Attachment_fu Thumbnails not working

Check the actual file on the file system, is it the correct size?

BJ Clark
the science department
http://www.scidept.com/

Re: Attachment_fu Thumbnails not working

Yes everything is correct in the file system and I can access the thumbnails by making the call:

    @mugshots = Mugshot.find(:all, :conditions => ['thumbnail="thumb"'])

But I can't access a specific thumbnail with mugshot.public_filename(:thumb).

Is this call working for other people?  What storage mechanism are you using?

Re: Attachment_fu Thumbnails not working

works for me using file system.

BJ Clark
the science department
http://www.scidept.com/