I love to browse plugin on wordpress.org when I need one. If you are like me and when you’ve found a plugin that looks like it matches what you’re looking, you’ll jump straight to the screenshot section to see how it looks like and what it has to offer.

One of the biggest annoyances I have is when a screenshot is getting downloaded and I have to open it in Preview instead of just viewing it in my browser which is what I expected.

The cause of this lies with SVN, but luckily it can easily be resolve.d If you’re the plugin author you can fix this by changing the MIME type of your images.

On Windows, using TortoiseSVN, you can right click the screenshot file, and select the TortoiseSVN->Properties menu. There you will find the svn:mime-type property, probably incorrectly set to “application/octet-stream”. Change that to the proper mime type of “image/png” or “image/jpg” accordingly. Afterwards, commit the change.

If you prefer command line SVN:

svn propset svn:mime-type image/png screenshot-1.png
svn commit

Or similar. If somebody uses a different SVN client, look for “properties” and then the svn:mime-type property.

Props to Otto and Mika Epstein for posting it here

 

In this post I haven’t discussed anything new from what is posted on the original post where I learned this from. But I do remember having a hard time searching for this, so by writing about it I hope someone else will have a easier time finding the solution to the same issue.

  • Jeroen Sormani

    I'm a professional WordPress plugin developer on a mission to create the best plugins for my clients. I'm specialised in developing general WordPress, WooCommerce and Easy Digital Downloads plugins.

    Interested in talking about a WordPress project? Get in touch!

    Follow me on Twitter
  • Leave a Reply