简体   繁体   中英

Pinterest: Pin an image from a canvas

Is there a way to pin an image that is rendered on a html canvas element? I tired to send image data via base64 but Pinterest said "Error: URI Too Long" or (with smaller images) that it is not in a valid URL format.

This is my code:

    <a 
      class="pinterest" 
      href="http://pinterest.com/pin/create/button/?url=abc.xyz&media=xxx&description=This%20is%20a%20description"
    >
      Pin canvas image
    </a>

(where xxx (media) is a base64 string)

What options do I have?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM