On 15 Jun 2011, at 11:09, GD wrote: > On Jun 15, 12:02 pm, William Ross <[email protected]> wrote: >> On 15 Jun 2011, at 09:28, GD wrote: >> >>> Hello Everybody, >> >>> I am new to the list, very new to CMSs and very very new to Radiant (a >>> great system, very excited to use it) ... >> >>> building my wife's chocolate & truffles website I wonder, if Radiant >>> display animated GIFs. I uplloaded one and it doesn't work. Is there a >>> trick to it or an extension? >> >> Hello Guido, and welcome. >> >> Radiant doesn't touch the image file itself, so if you want to display the >> uploaded GIF, you should only need a tag like this: >> >> <r:assets:image id="x" size="original" /> >> >> You should be able to omit the size parameter too: 'original' is the default. >> >> If you want to display one of the resized versions, you will run into two >> issues. First, the standard thumbnail and icon are translated to PNG format >> for use in the admin interface. You would need to add another thumbnail >> style that did not change the image format. Secondly, an issue with >> paperclipped: due to a pdf-resizing hack it will only capture the first >> frame of an animated gif. There is a patch that we can apply if the main >> distribution doesn't adopt it, but it will get a bit messy and I'm reluctant >> unless there is a strong demand from the animated-gif-resizing community. >> >> best, >> >> will > > Thank all for your quick answers > > @will > > 1. so if I choose the right dimensions for the gif, so the system > won't have to do an resizing, the animation will play, when the pages > are displayed?
If you upload an animated gif file and then display the original file, there is no processing involved and the file will display normally. I For a static image file you could also use one of the automatically-resized versions, but with an animated GIF the resizing breaks the animation, so it's not usually a good option. There is also the separate question of what height and width to specify in your html (or radius tag). That doesn't affect the file-processing and as usual, for best results you want the image to display at its natural size. In your case that will be the dimensions of the original file you uploaded. You can also achieve this by omitting the height and width parameters and letting the browser decide, but it's generally better to specify dimensions if you can. In short, you have to make the animated GIF at the right size before you upload it, but after that it should all just work. > 2. is there an alternative to animegifs, that radiant will display > without any hassle? Not really, no, but it depends on your ultimate purpose. If you just want to display a slideshow of chocolates, which I think we can all agree is a good thing, then you can do it better with static images and javascript effects. For more complex animations your only other option is to use flash (which the asset manager will handle but not process). best, will
