Donmai

Flash tag

Posted under General

Granola said:
Don't the other tags inside the post give enough of a clue as to what is in the flash?

Yes. BUT if I am browsing the flash tag itself... That isn't quite helping :).

A thumbnail could work... But flash files don't quite support that...

There is a way to implement flash previews: you can use swfdec-thumbnailer from swfdec-gnome package, which producing fully rendered raster image of specified size. Or just use it's code to make own one, since it licensed under LGPLv2.1.

On my test on ~400 files it worked mostly fine with about ~5 exceptions when due to bad timing preview was plain color, but handling such cases can be automated simply with something like GD/imagemagick and trying another time to get the thumbnail from.

Updated

neverb said:
There is a way to implement flash previews: you can use swfdec-thumbnailer from swfdec-gnome package, which producing fully rendered raster image of specified size. Or just use it's code to make own one, since it licensed under LGPLv2.1.

On my test on ~400 files it worked mostly fine with about ~5 exceptions when due to bad timing preview was plain color, but handling such cases can be automated simply with something like GD/imagemagick and trying another time to get the thumbnail from.

I am not complaining... I am merely stating an area that can have software improvement. I thought that was a no brainier. :)

I know all too way to find workarounds to fix such problems. But the entire site wouldn't benefit from those...

Shiroi_Neko said:
I am not complaining... I am merely stating an area that can have software improvement. I thought that was a no brainier. :)

I know all too way to find workarounds to fix such problems. But the entire site wouldn't benefit from those...

This was information for danbooru developers, swfdec-thumbnailer fully server-aplicatable.

1