Need help? Check out our Support site, then


wordpress post editor incorrectly parsing Base64 Encoded PNG

  1. I was testing Firefox 4 and I noticed that I was able to directly cut-and-paste an image from the Windows XP Clipboard into a WordPress New Post UI, and firefox does its magic by encoding the PNG. However upon publishing, WordPress is messing a html definition for a Base 64 Encoded PNG.

    Here is what the correct html for Base64 Encoded PNG should like:
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAATCAIAAAAS8MqlAAAAGElEQVQ4jWNoYPhPBmIY1TaqbVTbMNUGAOgB/7pVXBoXAAAAAElFTkSuQmCC" alt="" />

    here is what WordPress produces:
    <img src="image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAATCAIAAAAS8MqlAAAAGElEQVQ4jWNoYPhPBmIY1TaqbVTbMNUGAOgB/7pVXBoXAAAAAElFTkSuQmCC" alt="" />

    Note: data is missing in wordpress parsed html. I even tried to add it using HTML editor, but wordpress still strips it out. See http://doctrina.wordpress.com/2010/10/16/image-copy-and-paste-from-clipboard-in-firefox/ for an example.

    Is this something that can be fixed? This will provide much needed copy-and-paste directly from windows clipboard to WordPress. No more saving a screenshot to desktop and then attach it to wordpress.

    Saqib

    The blog I need help with is doctrina.wordpress.com.

  2. Hi,

    Any updates on this?

    Thanks,
    Saqib

  3. Above my pay grade - but does this help?

    http://en.support.wordpress.com/code/

  4. @auxclass : Thanks for the reply.

    According to page wordpress does support the tag, but it is somehow incorrectly parsing it upon save. So I would categorize it as a bug.

    Thanks,
    Saqib

  5. @quantumcrypto: In that case, contact WordPress.com staff. You'll be certain if it's indeed a bug or if base64 img tags are deactivated on WordPress.com:
    http://en.support.wordpress.com/contact/

Topic Closed

This topic has been closed to new replies.

About this Topic