Page 1 of 1

Converting ZIP containing images to gif

Posted: Fri Sep 18, 2015 1:35 pm
by AnoPem
Hello i have an online zip file that i want to convert to a gif file the zip file contains multiple image jpeg files.

Can anyone help me out how i can achieve this, ive seen others do this but i just cant figure out how i can do it?

Re: Converting ZIP containing images to gif

Posted: Sat Sep 19, 2015 7:19 am
by visualtech
This should be fairly easy; all you have to do is to extract (read) that zip file, take all the images, bind them in sequence and violá. There are many libraries which extract a zip file like https://stuk.github.io/jszip/ and there are libraries to convert jpeg to gif like https://github.com/shachaf/jsgif :)

Re: Converting ZIP containing images to gif

Posted: Sat Sep 19, 2015 12:16 pm
by AnoPem
visualtech wrote:
This should be fairly easy; all you have to do is to extract (read) that zip file, take all the images, bind them in sequence and violá. There are many libraries which extract a zip file like https://stuk.github.io/jszip/ and there are libraries to convert jpeg to gif like https://github.com/shachaf/jsgif :)
Ive been trying to do this with gif js and zipjs but i just cant figure out how zipjs works, ive read the documentation but just cant seem to get what i need out of it. Any ideas ?

BTW. the zip is not on my own server its for a chrome extension im creating. The zip is on a website and should be downloaded, but i have that part

Re: Converting ZIP containing images to gif

Posted: Sun Sep 20, 2015 9:48 am
by visualtech
Hmm... What, exactly, is the problem?

Re: Converting ZIP containing images to gif

Posted: Sun Sep 20, 2015 10:14 am
by AnoPem
visualtech wrote:
Hmm... What, exactly, is the problem?
I dont know how i get the image data from the zip file all i seem to get is the filenames