[Radiant] animated GIFs

2011-06-15 Thread GD
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?

Thanks in advance and apologies if my questikon is too trivial

Guido


Re: [Radiant] animated GIFs

2011-06-15 Thread Christian Aust
I assume you're using the 1.0 release candidate, and therefore the new asset 
manager extension?

I've seen this with transparent PNG, too. The paperclipped created thumbnails 
didn't have transparent areas but instead black background. Radiant itself 
shouldn't change the file that you're uploading but will use imagemagick to 
create variants with other dimensions.

Do you use an attribute size with the tag r:asset:image? Try without it.

Regards,

Christian

Am 15.06.2011 um 10:28 schrieb GD:

 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?
 
 Thanks in advance and apologies if my questikon is too trivial
 
 Guido
 



Re: [Radiant] animated GIFs

2011-06-15 Thread William Ross
On 15 Jun 2011, at 09:54, Christian Aust wrote:

 I assume you're using the 1.0 release candidate, and therefore the new asset 
 manager extension?
 
 I've seen this with transparent PNG, too. The paperclipped created thumbnails 
 didn't have transparent areas but instead black background. Radiant itself 
 shouldn't change the file that you're uploading but will use imagemagick to 
 create variants with other dimensions.

The asset manager will only create the thumbnails that you tell it to, apart 
from a couple of standard sizes that we use in the admin interface. Both of 
those are small so we use pngs: in most other cases the original file format 
will be preserved.

Imagemagick should handle transparency, but it does have some issues in older 
versions. It tends to add a black halo. Try and make sure you have version 
6.2.4 or later.

The asset manager is not very well documented at the moment, I'm afraid. It 
will be soon. For now you have to edit the config entry 
assets.thumbnails.image, where you can define as many thumbnails as you like 
with this kind of format:

tiny:size=20x20#,format=png|huge:size=1280x1280|...

likewise for assets.thumbnails.video and so on. Be warned, though: one reason 
it's not documented is that we haven't committed to the format yet, so it is 
likely to change. 

The other reason is that soon this will all be configurable through the admin 
interface.

best,

will



Re: [Radiant] animated GIFs

2011-06-15 Thread William Ross
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