Download Shortcode v1.1: Now with subdirectory install support

Just released v1.1 of Download Shortcode, with added support for subdirectory WordPress installs.

Thanks to a report from Stuart Sequeira, I realized I’d forgotten to re-add subdirectory support when I rewrote it in v1.0. I also regenerated the pot file to make sure the strings are included.

In short: Download Shortcode provides a shortcode for wrapping media links that forces them to download. It’s great for providing easily-downloadable MP3, jpg, mp4 or other media file types.

Want to contribute?

Download Shortcode is in active development on GitHub too, so if you’d like to contribute, pull requests are welcome.

Related:

What does the Enable Image Scaling plugin do?

A lot of people have contacted me in the last year about my Enable Image Scaling plugin to ask me what exactly it does.

It’s a valid question, mostly because many people don’t understand the distinction between scaling and cropping. Put simply, scaling is like resizing. The plugin resizes — or scales-down — your image(s) on upload.

So why would you want to do that? Smaller images make for faster websites.

I’ve worked up a little example to try demonstrating the benefits of scaling down images on your WordPress site.

Image scaling comparison

Let’s say you have an image, we’ll call it bakery.jpg. You’ve just downloaded it off of your camera and it has the following stats:

  • Dimensions: 3184 x 2120 pixels
  • File size: : 5.1 MB

By most accounts, that’s a pretty big image. And that’s about par for the course when it comes to modern digital cameras.

And let’s say that in the last year, conservatively, you’ve uploaded 100 images to your photo blog or whatever. That’s roughly 500 MB of images.

Now let’s say you decided to scale all uploaded photos to have a max width or height of 1000px. When scaled down from 3184px to 1000px width, the image now has the following stats:

  • Dimensions: 1000 x 666 pixels
  • File size: 790 KB

If you had scaled down all 100 images on your photo blog to 1000px width, they would now have a cumulative file size of roughly 80 MB, which is an 80 percent decrease.

Year over year, stored images can really start to add up and it doesn’t make a lot of sense to store huge, original images on a server if they can’t be viewed to their full potential anyway. Enable Image Scaling can help you keep things sensible.

Enable Image Scaling on Upload 1.0

This morning I released version 1.0 of my Enable Image Scaling on Upload plugin. It’s completely rewritten but sports the ability to set custom dimensions in 3.5+.

It also now allows for globally enabling or disabling the feature. It’s still backward compatible, though custom dimensions are not supported in 3.3 and 3.4.

Download it in the WordPress.org repo.

What’s up with attachments linking to other attachments?

What’s up with attachments linking to other attachments?

Something I’ve recently noticed in all of the Twenty * bundled themes is that media on the attachment pages are auto-linked to the next media in the gallery. What’s the point of having Next/Previous pagination links if you’re going to link the media anyway? I’d venture to say that if the media links to anything, it should be to its source.