How to embed text metadata in html5 canvas images - html

When right-clicking on a HTML5 Canvas image, it is offered a "Save As..." option allowing to save the image in PNG format by default.
My question is if it is possible to add text metadata (Title, Author, Description..., etc) to the resulting PNG as described on the PNG specification while generating the drawing.

Related

How to add a thumbnail for Google indexing in a Vimeo embedded video?

I have a website with a video from Vimeo embedded as:
<iframe src="//player.vimeo.com/video/496371201" frameborder="0"></iframe>
Google says that it cannot index the video because I don't provide a thumbnail. Google's documentation for video best practices states:
Provide a high-quality thumbnail
To be eligible to appear in Google video features, a video must have a valid thumbnail image. Otherwise, the page may be indexed but would only appear as a plain blue link.
You can allow Google to generate a thumbnail, or provide one in one of the supported ways:
If you're using the HTML tag, specify the poster attribute.
In a video sitemap, specify the video:thumbnail_loc tag.
In structured data, specify the thumbnailUrl property.
If you allow Google to fetch your video content files, Google can generate a thumbnail for you.
Supported thumbnail formats: BMP, GIF, JPEG, PNG, WebP, and SVG.
I have the thumbnails as PNG files. What is the HTML code to include them as thumbnails near to the iframe embedded video from Vimeo so that Googlebot finds it?
In regards to thumbnails for vimeo, you can retrieve the thumbnails links from the vimeo API(https://developer.vimeo.com/api/reference/videos/3.4.7#get_video_thumbnail) or oEmbed(https://developer.vimeo.com/api/oembed/videos). Not sure as far as google requirements, separate item.

Using SVG with referenced PNG as background image

Given an SVG that references a PNG image using <image xlink:href="http://... why can't I use the SVG as background image with CSS? If I call the SVG directly in the browser (tested with Chrome and Firefox), it shows me the SVG with the PNG and the debugging tools (Network tab) also show that the external graphic was called. Using an <object> tag in HTML pointing to the SVG also works. What also works is embedding the PNG into the SVN using base64, that allows me to use the SVG a background image, but not if the image is a path. Test page, CSS, SVG and the image I am linking to in the SVG are all on the same server.
The functionality is documented in the SVG Integration specification
When you use SVG as a background image its functionality is that of an
animated image document
It therefore runs in secure animated mode.
And one of secure animated mode's restrictions is that external references are not allowed.

How to display an image of type TIFF?

I need to do a preview of tiff files.
I need a alternative to services google using iframe..
Thanks!
I believe displaying tiff is a matter of browser support (or if the browser has the plugin for it).
http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support
Depending on where you get your images, you might be able ask them to generate the image in a different format (like jpg, png, etc).

Wrong orientation when image captured by HTML5 file api on IOS 6.0

I am using HTML5 file api on mobile web app for image uploading utility.
I am capturing image using camera and upload it to server.
Problem is that if I capture portrait image the uploaded image automatically converted to Landscape.
You'll need to transform the image to correct the orientation. Fortunately, the image should include EXIF data that you can use to do that. If you like, you can do this before the image is uploaded to your server:
Read the image's EXIF data
Use a canvas element to transform the image as appropriate
Export the canvas image into an image file
There's an excellent writeup, including code samples, in this blog post.

Problem in time to show images

I need to show pictures of direfentes formats such as JPG, GIF, BMP, TIF, PNG, PCX, but I'm not getting the images in tif and pcx formats appear in the html image tag, anyone know how I could do this?
The img tag can only handle jpg, gif, bmp and png files. To display i.e. a tiff file you can use the embed tag.
<embed width=xxx height=xxx src="tiffdocument.tif" type="image/tiff">
More variations here
Most browsers can't display TIFF and afaik no browser can display PCX images, using standard <img> tags.
A solution would be to convert the image to a supported format, either manually or automatically (using php or server-side language).
Repeat of: Display TIFF image in all web browser. It's browser support issue.