Noor's Plugin

WordPress Plugins, Themes, Hosting, Tutorials & more!

  • Home
  • Plugins
    • Themes
  • Hosting
  • Contact
    • Privacy Policy
  • About

How to Set MIME Type of Screenshots in the WordPress Plugin Repository

I have a number of plugins in the WordPress plugin directory. There is an issue with screenshots that I have been trying to figure out for a while. In fact, I have experienced the same issue with some other plugins.

You may have noticed a download prompt when clicking on a screenshot.

screenshot showing download prompt on the WordPress plugin directory

This is a little annoying for users who are trying to view an image. Turns out it is actually caused by incorrect MIME Type.

Editing MIME Type Using TortoiseSVN

If you use TortoiseSVN (on windows) to commit to WordPress plugin directory please follow these steps to set the MIME Type of an image correctly.

1) Right Click on the screenshot and select TortoiseSVN -> Properties.

screenshot showing how to navigate to properties of an image using svn

2) As you can see that the svn:mime-type property is set to application/octet-stream. Go to Edit -> Advanced to modify it.

screemshot showing how navigate to the mime type settings of an image using svn

3) Enter the correct MIME Type. It should be set to –

a) image/jpg for a jpeg file

b) image/png for a png file

screenshot showing how to edit the mime type of an image using svn

Do it for all the screenshots (if you have more than one). Click Ok to update the value.

Now commit changes to the repository and you shouldn’t see the download prompt anymore.

Did this tweak work for you? Feel free to share your thoughts in the comments.

Related

Written by Noor Alam · Categorized: wordpress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Noor’s Plugin

Recent Posts

  • How to Add a Quantity Field to a Stripe Payment Button
  • How to Add a Price Field to a PayPal Button
  • Hide Product Image for WooCommerce Plugin
  • How to Show a Download Button to Logged in Users Only
  • How to Add a Price Field to a Stripe Payment Button
  • How to Disable/Hide Featured Images in WordPress Astra Theme
  • What is the White Screen of Death in WordPress?
  • How to Fix YouTube Error The uploader has not made this video available in your country
  • How to Configure SendGrid SMTP in WordPress
  • Checkout for PayPal WordPress Plugin

Copyright © 2022 · Noor's Plugin

This website uses cookies to improve your experience. By continuing, you agree to their use.Got it! Learn More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT