BlogLiterately-0.8.6: A tool for posting Haskelly articles to blogs

Copyright(c) 2012 Brent Yorgey
LicenseGPL (see LICENSE)
MaintainerBrent Yorgey <byorgey@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Text.BlogLiterately.Image

Description

Uploading images embedded in posts to the server.

Synopsis

Documentation

uploadAllImages :: BlogLiterately -> Pandoc -> IO Pandoc Source #

Transform a document by uploading any "local" images to the server, and replacing their filenames with the URLs returned by the server. Only upload any given image once (determined by file name), even across runs: uploaded images and their associated URL on the server is tracked in a special dotfile, .BlogLiterately-uploaded-images.

uploadIt :: String -> FilePath -> BlogLiterately -> IO (Maybe Value) Source #

Upload a file using the metaWeblog.newMediaObject XML-RPC method call.

mkMediaObject :: FilePath -> IO (Maybe Value) Source #

Prepare a file for upload.