View Full Version : combine 2-3 jpeg images into one image and save

20 Aug 2013, 3:07 PM
Hello All,

I am a new bee to Sencha Extjs and I seek your advice in combining 2-3 jpeg images into 1 image(jpeg/pdf) and be able to save it in local hard drive.

Any suggestions are appreciated.

Thank You

22 Aug 2013, 9:05 PM
Don't believe you can do that with a Javascript library like ExtJS. Perhaps flash or some server-side solution?

23 Aug 2013, 12:00 AM
With javascript, only, client side probably would be possible to combine a few imgs in one by using a "canvas" and it's method "toDataURL". But take in account that if the images are from different domains then you might have a CORS error.

23 Aug 2013, 7:04 AM
The images are coming from different domains.. is there any other way in which i can implement this at the client side.

It will be great if you can give me some pointers to add "canvas" to ExtJs... i am planning to follow this

b (http://www.mysamplecode.com/2012/03/html5-canvas-tutorial-for-beginners.html)ut i am not successful yet.

Thanks once again for all the help.