Markdown + photo upload
tf2 last edited by
Hi all. I've been using Editorial for a bit, including writing and/or adapting some basic workflows, but this has be stymied.
I want to be able to compose brief markdown log entries (whether in Drafts or Editorial itself) and append them to a daily file in dropbox. The catch is that I'd like to insert photos from my iPhone camera roll.
I've adapted the Save Image workflow to upload and retain an image path for inline linking, but it seems to strip/lose exif data -- in particular the orientation flag that apparently causes so much grief. Whether I view in Editorial's Markdown preview, or on my Mac in various Markdown apps (including Marked 2 and MultiMarkdown Composer), some photos appear rotated 90 or 180 degrees.
Is there any way to avoid this? I have run across a complex (to me) Python script that apparently harvests exif data from camera roll pictures and then re-applies it, but it seems like overkill, and I'm not confident in my ability to adapt it to my needs (and combine it with the workflow I'm using to upload and retain a path to generate a markdown link).
I'm hoping there's a more elegant (easier?) solution I'm overlooking. Image orientation seems like a pretty basic requirement for so many applications...
coomlata1 last edited by coomlata1
Hi...I wrote a Pythonista script last year that gets the orientation info you are looking for out of the photo's meta data. The script captures all the meta data from the photo(s) you select and copies the photo(s) and the meta data back to dropbox. You have to capture this info after you select, but before you copy the image. I too looked for ways to do this in lots of scripts and workflows but could find nothing. All the workflows-scripts I found stripped all the meta data before copying the image to the desired destination. I eventually chose to work entirely from Pythonista. The script I wrote is available via a repo in GitHub here.
While I have more experience with Pythonista than Editorial, I might be able to help you find a solution if you could post what you have so far in terms of the scripting for your workflow.
Webmaster4o last edited by
@coomlata1 You do know you can edit posts, right? Press the 3 dots icon, then select "edit"
coomlata1 last edited by
Thank you...good to know.
matthewdunlap last edited by
@tf2 , I wanted to do something very similar to you, and encountered the same problem regarding image orientation.
Using the Insert Image... Workflow as a starting point, I put together a workflow that will rotate the image to preserve the original orientation.