The Glowfic Constellation

Do you have a setting, character, plot, art, or other notion that you wish to put on the Internet? This is the Internet! Whee!
User avatar
PlainDealingVillain
Posts: 622
Joined: Tue Apr 01, 2014 10:15 pm
Pronouns: he etc.

Re: The Glowfic Constellation

Post by PlainDealingVillain »

It does indeed have a gem; RMagic is the ImageMagick wrapper. Probably there's also a way to pull out just the first frame. http://stackoverflow.com/questions/2723 ... s-animated
Marri
Posts: 1026
Joined: Mon Mar 31, 2014 7:47 am

Re: The Glowfic Constellation

Post by Marri »

I don't process uploaded images through the server; uploading images is slow and you'd hang the app for everyone. We're uploading entirely through Javascript right now, so RMagic would have to wait for me to pay $$$ for a bunch of servers.
Moriwen
Posts: 479
Joined: Mon Oct 19, 2015 5:54 pm
Pronouns: she/her

Re: The Glowfic Constellation

Post by Moriwen »

Is it possible to modify a character's galleries (specifically, removing icons/galleries from the character) without retroactively breaking a bunch of images? If not, can it be?

Frequently I put an icon into a character's gallery, and then discover I practically never use it and would like to remove it so it doesn't clutter up the gallery, but I don't want to leave all the posts that used that icon icon-less. Nor do I necessarily want to go swap them all out for different icons.

Also, sometimes a character will need a gallery for one thread and no others they're in, and while I could make a separate character just for that one thread, it would be nice to be able to just remove the gallery from their page once that thread concludes.
Throne3d
Posts: 1282
Joined: Sat Oct 10, 2015 1:11 pm
Pronouns: He/him/his
Location: United Kingdom

Re: The Glowfic Constellation

Post by Throne3d »

If you remove icons from a gallery but leave them on the site (i.e. remove from gallery, don't delete), they should remain intact in all replies and posts they've been used in so far. (A few of my characters have had major gallery rearrangements, and old posts still maintain the correct icons.)

You can remove galleries from a character safely, too – the UI might be weird if you go editing a reply that's used one of those icons (i.e. the icon dropdown doesn't display a keyword, the icon still shows, when you save it keeps the appropriate icon) but it should stay perfectly fine.

Replies and posts tie to a particular icon ID, and removing the icon from a gallery or the gallery from a character does not go and remove it from these posts.

Edit: but again, don't go deleting icons or else you will have issues. Issues of "all replies and posts that ever used this icon now no longer have an icon".
User avatar
PlainDealingVillain
Posts: 622
Joined: Tue Apr 01, 2014 10:15 pm
Pronouns: he etc.

Re: The Glowfic Constellation

Post by PlainDealingVillain »

Looks like there's a short JS hack that stifles animation:

Code: Select all

[].slice.apply(document.images).filter(is_gif_image).map(freeze_gif);

function is_gif_image(i) {
    return /^(?!data:).*\.gif/i.test(i.src);
}

function freeze_gif(i) {
    var c = document.createElement('canvas');
    var w = c.width = i.width;
    var h = c.height = i.height;
    c.getContext('2d').drawImage(i, 0, 0, w, h);
    try {
        i.src = c.toDataURL("image/gif"); 
    } catch(e) { 
        for (var j = 0, a; a = i.attributes[j]; j++)
            c.setAttribute(a.name, a.value);
        i.parentNode.replaceChild(c, i);
    }
}
Marri
Posts: 1026
Joined: Mon Mar 31, 2014 7:47 am

Re: The Glowfic Constellation

Post by Marri »

Moriwen wrote:Is it possible to modify a character's galleries (specifically, removing icons/galleries from the character) without retroactively breaking a bunch of images? If not, can it be?

Frequently I put an icon into a character's gallery, and then discover I practically never use it and would like to remove it so it doesn't clutter up the gallery, but I don't want to leave all the posts that used that icon icon-less. Nor do I necessarily want to go swap them all out for different icons.

Also, sometimes a character will need a gallery for one thread and no others they're in, and while I could make a separate character just for that one thread, it would be nice to be able to just remove the gallery from their page once that thread concludes.
I don't think I do anything requiring that a icon actually belongs to a character retroactively, just in the editor. So if Icon A belongs to gallery B which is attached to character C, and you make a post with character C and icon A, but then decide that gallery B doesn't apply to character C any more, it's not going to do anything to that post. Have you seen issues, or were you just asking?
Moriwen
Posts: 479
Joined: Mon Oct 19, 2015 5:54 pm
Pronouns: she/her

Re: The Glowfic Constellation

Post by Moriwen »

Just asking -- I am too paranoid to actually try anything. :P Thanks both of you! <3
Kappa
Posts: 3554
Joined: Fri Mar 21, 2014 5:47 pm
Pronouns: 'He' or 'she', interchangeably
Location: under a pile of Jokers
Contact:

Re: The Glowfic Constellation

Post by Kappa »

A thing that sometimes happens:

I have some text in the reply form. I accidentally refresh the page. I see the page load with the text in the form. Then the text vanishes. Sometimes I can get the text back with ctrl+Z; sometimes it is gone forever.

What's happening there? Is there a convenient way to have the text not vanish like that? Should I just compulsively save drafts every five seconds? (If compulsively saving drafts every five seconds is the answer, can saving drafts take me back to the bottom of the page instead of the top? Most of the reason I use drafts as infrequently as I do is because scrolling back down is a pain.)
User avatar
Alicorn
Site Admin
Posts: 4226
Joined: Fri Mar 21, 2014 4:44 pm
Pronouns: She/her/hers
Location: The Belltower
Contact:

Re: The Glowfic Constellation

Post by Alicorn »

Get Lazarus browser extension! But if there's a way to do this site-side that would be good too.
Kappa
Posts: 3554
Joined: Fri Mar 21, 2014 5:47 pm
Pronouns: 'He' or 'she', interchangeably
Location: under a pile of Jokers
Contact:

Re: The Glowfic Constellation

Post by Kappa »

I'm not sure browser extensions are gadget-compatible as a general thing!
Post Reply