zoukankan      html  css  js  c++  java
  • MetaBlogApi怎么处理Inline图片?

    I was curious what happened when I used the new Community Server MetaBlogAPI with inline images when posting from Live Writer.  Specifically, I wanted to see how and where new folders were created and how image file names were handled.

    Two things.  For one, this test was done on my dev server because, two, I'm way too much of a control freak with my site to use the MetaBlogAPI for inline images.  My blog images are in a folder structure I've been using since 2003 and arranged by year.  I'm not going to change that.  I ftp the images to be displayed in my blog posts when I write the post and link to them either online or in Live Writer.  Of course, one of the beauties of Community Server, same with the new MetaBlogAPI, is that we can modify the source to control every single bit of the transmitted inline image if we want, as several guys have already demonstrated in the week since the new MetaBlogAPI has been released. 4

    Okay, nothing here you haven't already seen.  The image is a screenshot of Community Server Roles for a forum at cs.org.  Yeah, I know.  I need to vary my nerd diet a bit.  No!  I won't do it.  I won't!  I won't!  Oh, sorry... 

    The inline image process is interesting because rather than link to a web image as I normally do, I add the image from a local hard drive and let the MetaBlogAPI take care of the rest.  Something else interesting is that Live Writer supports linking to a larger image (set in the sidebar Image Properties), so I scaled the image for display in the post.  Then on posting with the MetaBlogAPI with Live Writer, not only did the image transfer to my site, but it was hyperlinked to the actual sized image as well.  Two images are created by the MetaBlogAPI to support this function.

    Okay, so now for the all-important question for anal admins: where are the folders created and how are the filenames changed?  As we see below, they are created under in a WindowsLiveWriter folder under blogs/OurAppKey.  A separate folder is created for each post. 

    The filenames are only changed to accommodate the Live Writer function of linking to a larger image.  If the image is uploaded without any additional linking, its original filename is retained by the MetaBlogAPI.  Sweet.

    The MetaBlogAPI is a splendid technology.  And no one does it better than...well, you know the rest.

     

    原文地址:http://dbvt.com/blog/archive/2006/11/17/what-happens-when-using-the-cs-metablogapi-with-inline-images.aspx

  • 相关阅读:
    史上最全web.xml配置文件元素详解
    SpringMVC后台接收list类型的数据的实现方式
    史上最全的maven的pom.xml文件详解
    阿里菜鸟同学迟到的2018年个人总结(文末彩蛋)
    可以落地的DDD到底长什么样?
    欠的债,这一次都还给你们
    主流分布式架构的风流韵事...
    分布式架构的前世今生...
    分布式架构之美~
    征服诱人的Vagrant!
  • 原文地址:https://www.cnblogs.com/ywolf123/p/577661.html
Copyright © 2011-2022 走看看