Import AI & EPS as Images on Fabricjs Canvas - html

Apparently fabricjs supports most of the images formats out there , they also have some support for pdf files but can't seem to find a way to upload .ai & eps files and convert them as images on fabric canvas

Related

How to embed text metadata in html5 canvas images

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.

Google Swiffy method can export in SVG shapes instead of Canvas?

I want to export swf into SVG animation.
This website already used swiffy and runtime generating svg shapes.
http://gardenestudio.com.br/1-ano/
But When I convert my swf file into html 5 using swiffy it exporting animation in Canvas.
Please guide me how to get swiffy animation into SVG shapes.
This is from the Swiffy website, Release notes, August 4, 2014 (version 7.0.0) :
Switched to HTML Canvas for renderering [sic]
rather than SVG. This allows improved fidelity for filters and other
graphical effects and provides more consistent results across a
broader range of platforms including mobile devices.
Since the Swiffy extension in Flash accesses Google Swiffy as a web service, "you always use the most recent version of Swiffy". So, if the most recent version of Swiffy has switched from SVG to canvas, then I guess you're stuck with it.

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.

How to use image path instead of base64 string in phonegap?

I have application with HTML5 & phonegap & iphone native plugins.
Image uploaded & stored on iphone's local storage using native plugin. Then they are providing base 64 image string & we are displying in HTML img tage.
So if there are more than 10 images then they have 10 base64 image string. So it's taking too much time to load the page.
Can we manage like this they will provide sdcard image path & we display in HTML image tag?
We tried but didn't succeeded.
Take a look at FileTransfer. You can use it to download files to mobile phone file storage, after download just save path and set src attribute of img.

Loading .bmp (Bitmap) and .tiff file in Flash 10 using a Loader

I am developing a Image uploader using Flash 10.
I am using FileReference object to browse images and Loader to show the image:
Sample code:
var tempFileRef:FileReference = FileReference(ev.target);
var oLoader:Loader = new Loader();
oLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad);
oLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
oLoader.loadBytes(tempFileRef.data);
It works fine with .jpg and .gif files but when I browse .bmp or .tiff file, I am getting the error:
Error #2124: Loaded file is an unknown type.
Is there a way to load and display browsed .bmp images from desktop?
Thanks
BMPDecoder class from Spark lib:
http://www.libspark.org/svn/as3/BMPDecoder/src/com/voidelement/images/BMPDecoder.as
Example of the usage: http://hi.baidu.com/leyhui/blog/item/d12be8b116ec915308230298.html
Regarding TIFFDecoder, it is still work in progress, but very promising one:
http://code.google.com/p/windowsbitmapdencoder/
No. Flash does not support .bmp and .tiff files.
Adobe Help Docs
"The bitmap image formats supported by Adobe Flash Player are GIF, JPG, and PNG."