I made a simple update to my Auto SEO WordPress plugin. Adds a simple “is-it-working” check and fixes a few typos. Never write up release notes at 4am kids.
I just pushed an update to my Directory Image Resizer script, now it supports a fuzziness factor when resizing images. Before, if your image was even a tiny bit off the ratio that you wanted and you were using the crop or padding method it would either cut just a sliver off or add a sliver of padding. Small distortions however arn’t readily noticable, so if the distortion is within the fuzziness factor it will distort it to fit instead. Can be disabled easily in the resizer.php options.
I also made some changes to the div.js script, mainly renaming it to dir.js (as that seems much more logical) and adding a path to prevent it from creating a bunch of cookies when it really only needs one.
Update is on github, ready to go.
This is a class I haven’t talked about here, and for good reason, it was way to simplistic. Initially all this class did was scrape use the bls.gov inflation calculator and return the results. This however is slow, sometimes very slow, and I grew tired of waiting for it. With this update it now does the calculations locally for speedy adjustments. It also can do to-the-month adjustments now, something the bls.gov calculator does not support (even though they have all the data needed).
I know it’s a oddly specific thing to need, but if you need it check out the github repoitory.
Just pushed an update to matchbox. Version 1.1.0 introduces the navigationLoop option, allowing the navigation arrows to loop end-to-end through the image set. I laos fixed a couple bugs; one where the loadingHTML would only show on the first load, and another were opening the same image twice would prevent it from loading. The there were also minor changes in the code and readme to make things clearer.
Just wanted to go through the site and clean things up a bit. Posts should have a more limited selection of Categories, and more logical tagging (sometimes).
I’ve been toying around with the idea of a light box that didn’t us JS to center the image and finally got it all sorted out. Of course you know it’s got to be more than a basic light box, so I added a couple features and tried to make it as easy as possible to use.
First, in it’s default configuration, you can make any element trigger a lightbox by simply adding the attribute data-fullsize to it. If you want to do something a little different thats completely customizable, including using a function to get the larger version of the image.
It also have a few extra buttons in the lightbox view, the first of which is the open-in-new-window button in the top left which does exactly what you think it would, usefully for when the image is actually really large and there no way to see it all and see it at 100%.
On the side it has a couple arrows that light to navigate through all the images on the page that have the light box attached to them. Simple and something I would except to see more of in light box plugins. Both the arrows and the new-window button can be disabled in the plugins settings.
You can see it in action here: https://rawgit.com/pgooch/Matchbox/master/index.html and see the code, forkit it, and all that good stuff here: https://github.com/pgooch/Matchbox.