PressTigers

WordPress App Image Resize Failure While Upload

WordPress has recently launched its revolutionary Mobile Application which just lets you connect with your wordpress.com or self-hosted WordPress site. You can administer your dashboard by using its Android or iOS App.

WordPress App takes care of mainly all core functions of WordPress. However, some filters added by a third party plugins may not work correctly. Image resize functionality while uploading is one example that does not work with this application.

wp_handle_upload does not find absolute path when filters are applied on request from WordPress App. It only contains names which causes the failure of image resize functionality when it is done through WordPress App. Adding the following code to your funcitons.php file will resolve this issue of resize while uploading:

Apart from this solution, there is another fix that might be required in some cases that is ‘featured image’ attachment. If attached featured images are not being resized, use add_attachment hook to get the image path and then apply resize functionality from that plugin which you are using to resize images.

User Comments

Leave a Reply

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

Get in Touch