Danbooru

Flash thumbnail?

Posted under General

Would be a daunting task to do all the older stuff, but I don't think that is enough to warrant not doing it. Old stuff might never get thumbnails but at least the new stuff will. I have kind of stayed away from flash files because it's too much of a hassle not knowing what you are going to get.

A thumbnail of the first frame is still infinitely more useful than "DOWNLOAD", though. I am fine with flash videos in principle, but a lot of them are terrible. The only indication of that is the score and the tags, and that's often not enough.

スラッシュ said: A thumbnail of the first frame is still infinitely more useful than "DOWNLOAD", though.

Meh, if you ask me, I don't think Danbooru's very well-suited for hosting Flash content anyway. Not that I'm saying I'm against it, particularly.

Soljashy said:
I guess it could be made a manual process, but who would be up to the task? There are currently some six hundred posts tagged flash.

To do this manually and agree on the exact frame to display, not to mention if the site can even display a unique frame without an extra feature, would be a nightmare.

Granola said:
To do this manually and agree on the exact frame to display, not to mention if the site can even display a unique frame without an extra feature, would be a nightmare.

Worst case, you find one sucker willing to sit and sift through them making thumbs manually, and the results will already be better than anything you could produce through some automatic system. Not gonna please everyone, but hey, it's better than what we've got now.

Thumbnails would be an improvement. They should have "swf" written in the corner, so you don't pass over a good animated post with music because you thought it was a mediocre still image. Animated gifs should say "gif".

edit I think automatic thumbnailing would be good enough. Bad thumbnails might still be useful for telling posts apart.

Updated

How does SWFchan generate thumbnails? I beleive it's automatic, and might be of use to us. I think it does what Haali's Media Splitter does and seeks into the file a certain amount before taking the thumbnail. That way black frames and loading screens can be avoided.

Here's an implementation of my flash-labeling suggestion. [screenshot]

Indented with U+3000. Tested in ie6, ie8, chrome4, firefox3.5. Ugh.

javascript:
$$('.thumb img').each(function(img){
    var m = img.alt.match(/(^| )(gif|flash)( |$)/);
    if(!m)
        return;

    var label = new Element('span', {
        style: 'opacity:0.8' /* ie6-compatible opacity is too hard */
    }).setStyle({
        position: 'absolute',
        top: '3px',
        right: '3px',
        background: '#d3d3d3',
        color: 'black',
        fontWeight: 'bold',
        padding: '2px'
    }).update(m[2]);

    $(img.parentNode).setStyle({
        position: 'relative',
        display: 'block',
        margin: 'auto'
    }).clonePosition(
        img, {setLeft:false, setTop:false}
    ).insert(label);
});
void(0);

Updated

1