[Radiant] page_attachments thumbnails
Keith Bingman
keith at keithbingman.com
Wed Jun 6 06:12:57 CDT 2007
In order to generate a thumbnail with MiniMagick, you need to set the
processor to :mini_magick. You can do this in the PageAttachments
model, just where it says "has_attachment".
I have written my own tags that allow you to access the thumbnails,
but these are currently not in page_attachments. It is a very easy
tag to add, you just have to understand how attachment_fu works.
There is a good tutorial on attachment_fu at http://clarkware.com/cgi/
blosxom/2007/02/24#FileUploadFu, which shows all the various parameters.
Keith Bingman
Tel: +49-7731-79838380
keith at keithbingman.com
http://keithbingman.com
On Jun 6, 2007, at 9:52 AM, Jonathan Métillon wrote:
> Hi,
>
> I have page_attachments installed and running on Radiant edge. I also
> have MiniMagick installed. gem list shows:
>
> mini_magick (1.2.0)
> Manipulate images with minimal use of memory.
>
> The <r:attachment:image /> tag works very well!
>
> But in the Available Tags list, I can't see anything related to
> generating a thumbnail. Is there something like
> <r:attachment:thumbnail /> ?
>
> Thank you.
>
> J.
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
More information about the Radiant
mailing list