Board Thread:General Discussion/@comment-452-20150306003738/@comment-131168-20150623204915

I noticed today everything in my 452 New Files module seemed way too big. It's always been the case that some images didn't go as small as I told it, but today they all were, even ones that were at the start of the day. It looks like there's been a change in the URL needed for thumbnail images--452's module does a replacement based on searching for the part of the URL that says "/scale-to-width/", but it seems now "/scale-to-width-down/" is used. I've just tested, and it seems simply adding the "-down" where applicable in the code makes it start behaving properly again.

I think I also see why some images never resized down properly, too. Images that are already small enough (under 212 width?) Wikia doesn't use a "/scale-to-width-down/" in the image URL at all, so the search/replace in the module doesn't do anything with it. This can probably be fixed, too, but I don't have anything ready to show at this moment.

EDIT: Well, that was pretty easy. Possibly it could be done more eloquently on a single line, but I just added another search/replace line to catch where no scaling was going on, too.

$('#gallery-', $temp).html($('#gallery-', $temp).html.replace(/\/scale-to-width-down\/\d*\?/g, "/scale-to-width-down/106?")); $('#gallery-', $temp).html($('#gallery-', $temp).html.replace(/\/revision\/latest\?/g, "/revision/latest/scale-to-width-down/106?"));