I’m working on my script for uploading images directly from the iOS Markdown text editor app Editorial to WordPress. The current script uses xmlrpc-Wordpress library, but I’m writing my own so the user doesn’t have to install the extra library just to use my script.
When uploading files with xmlrpclib, I got this annoying thing happening. Every time I uploaded an image using xmlrpclib and the function wp.uploadFile the uploaded file got wpid- prepended to the filename of all my uploaded files.
Editorial App Workflow Upload Image to WordPress Media Library Version 2.2
I’ve tried a lot of blogging apps for the iPad, but none of them handles images the way I want. Images gets the weird name iOS has assigned to them which is not good for SEO. When I upload images to WordPress, I want them to end up in the WordPress Media Library and have all the theme defined sizes created automatically. Just like when you upload from the web interface in WordPress. There’s an added problem when you want your site to support images displayed on a Retina or high DPI device, showing the picture in high resolution using a plugin like WP Retina x2. My favourite text editor on iOS is Editorial app, So I made this Workflow so I can do the naming, resizing and uploading of the images directly inside the app from my iPad or iPhone 6 Plus. You can select which of the theme defined image sizes you want to display and also set the image alignment. This workflow works excellent with the WP Retina x2 plugin, which is the one I use on my site. When everything is done, you have an MultiMarkdown referred image link at the cursor position in the text editor, and the image link and information like width, height and alt-text is added to the end of the document. This makes a very convenient way of blogging on the iPad.
Editorial App WordPress Upload images Workflow updated
I have being going through the code for the Editorial App Workflow for uploading images directly to WordPress Media Library and added some functions. There where several bugs and problems. Should work better now.
— Bug where scaling didn’t work at all (shame!)
— Added full resolution image as alternative
— should work now for blogs that doesn’t automatically make scaled versions of uploaded images, only presented with the option to use full resolution.
Editorial iOS Upload Images to WordPress Workflow
Update: A newer, better version has been created. You can download it here.
I use the excellent iPad app Editorial as my preferred text editor. I want to be able to upload images directly from Editorial to WordPress, using xmlrpc, so the images ends up in the media gallery, the files in the correct folders, thumbnails made and a Markdown link with the correct URL is created. So I’ve written a workflow you can download that gives you the ability to select some text (that will be the alt text for the image), and either upload the image in the original size, or resize the width to the dimension you specify. After the image is uploaded, the Markdown image code is inserted. Another good thing is that you have the ability to name the image file, which I haven’t seen in other solutions, like in Poster App, where you get the cryptical iOS internal name of the image. Not so SEO friendly. The easiest solution was to use the wordpress_xmlrpc module, so that needs to be installed before you can use the workflow! but I’ve written a guide about how to install the module/library here. If you forget to install it beforehand, you will get this dialog box with instructions on how to install it if you start the workflow.
How To import modules with Pipista into Editorial iOS app
Importing pipista modules in Editorial
Lets face it, the Editorial App is a fantastic text/Markdown editor. It’s incredibly powerful with scripting abilities. But one of the most amazing tool for a power user is the ability to write Python scripts that can do almost anything. There are a lot of modules included with Editorial, but how do you add a library if it’s not included? There is a script for Editorials sister application Pythonista, that makes it easy to add modules, and you can use that for importing libraries to Editorial as well. The script is called Pipista.