ilan Expert Licensed User Longtime User Feb 3, 2016 #1 Hi, Is it possible to create a gif file from an image array? (Jpeg or png) Thanx EDIT: found this: http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm and this: http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/ Last edited: Feb 3, 2016
Hi, Is it possible to create a gif file from an image array? (Jpeg or png) Thanx EDIT: found this: http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm and this: http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #2 ilan said: EDIT: found this: http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm Click to expand... Code: Copy import java.awt.*; import java.awt.image.*; So it will NOT work on Android. Probably possible when using B4J ilan said: and this: http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/ Click to expand... I guess this should work when someone creates a wrapper for it Upvote 0
ilan said: EDIT: found this: http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm Click to expand... Code: Copy import java.awt.*; import java.awt.image.*; So it will NOT work on Android. Probably possible when using B4J ilan said: and this: http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/ Click to expand... I guess this should work when someone creates a wrapper for it
ilan Expert Licensed User Longtime User Feb 3, 2016 #3 DonManfred said: I guess this should work when someone creates a wrapper for it Click to expand... Interested ? Upvote 0
DonManfred said: I guess this should work when someone creates a wrapper for it Click to expand... Interested ?
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #4 will have a look at it later (maybe today, maybe tomorrow) Upvote 0
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #5 DonManfred said: I guess this should work when someone creates a wrapper for it Click to expand... It does not work on Android either. Code: Copy import java.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)... Sorry Upvote 0
DonManfred said: I guess this should work when someone creates a wrapper for it Click to expand... It does not work on Android either. Code: Copy import java.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)... Sorry
ilan Expert Licensed User Longtime User Feb 3, 2016 #6 DonManfred said: It does not work on Android either. Code: Copy import java.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)... Sorry Click to expand... Thanx a lot manfred for trying. I hope someone will find a way to do it and share it here. Upvote 0
DonManfred said: It does not work on Android either. Code: Copy import java.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)... Sorry Click to expand... Thanx a lot manfred for trying. I hope someone will find a way to do it and share it here.
ilan Expert Licensed User Longtime User Feb 3, 2016 #7 is this maybe something? https://github.com/nbadal/android-gif-encoder/blob/master/GifEncoder.java get it from here: http://stackoverflow.com/questions/...nimated-gif-from-jpegs-in-android-development Upvote 0
is this maybe something? https://github.com/nbadal/android-gif-encoder/blob/master/GifEncoder.java get it from here: http://stackoverflow.com/questions/...nimated-gif-from-jpegs-in-android-development
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #8 ilan said: is this maybe something? Click to expand... Code: Copy import java.io.IOException; import java.io.OutputStream; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.graphics.Paint; From the list of imports it seems to be part of the android.jar So far good. For today it is to late but i will check this tomorrow in details Upvote 0
ilan said: is this maybe something? Click to expand... Code: Copy import java.io.IOException; import java.io.OutputStream; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.graphics.Paint; From the list of imports it seems to be part of the android.jar So far good. For today it is to late but i will check this tomorrow in details
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #10 DonManfred, 11 minutes ago DonManfred said: but i will check this tomorrow in details Click to expand... i couldnt resist untested!!! PS: 11 Minutes sounds like a record Attachments AnimatedGifncoderLibfiles.zip AnimatedGifncoderLibfiles.zip 11.7 KB · Views: 388 Upvote 0
DonManfred, 11 minutes ago DonManfred said: but i will check this tomorrow in details Click to expand... i couldnt resist untested!!! PS: 11 Minutes sounds like a record
ilan Expert Licensed User Longtime User Feb 3, 2016 #12 i will check it out (NOW!) and i must say you are the HAMMER!! thank you so much Manfred Upvote 0
DonManfred Expert Licensed User Longtime User Feb 3, 2016 #13 ilan said: are you serius???? Click to expand... Try it! I did not make an b4a-example but the lib "should" work if you do it the right way and it will work if you create the needed outputstream which you need to create in b4a and give to the right method to save the animation after adding all frames (bitmap´s) And i said; untested. Maybe i did a big mistake and it just crashes. Who knows Upvote 0
ilan said: are you serius???? Click to expand... Try it! I did not make an b4a-example but the lib "should" work if you do it the right way and it will work if you create the needed outputstream which you need to create in b4a and give to the right method to save the animation after adding all frames (bitmap´s) And i said; untested. Maybe i did a big mistake and it just crashes. Who knows
ilan Expert Licensed User Longtime User Feb 3, 2016 #14 WOW, it is really working!! i created a simple gif and on my android device i see that gif. this is awesome!!! i dont know why but when i transfer my gif to my pc i cannot open it but on my phone it is loading! thank you very much Upvote 0
WOW, it is really working!! i created a simple gif and on my android device i see that gif. this is awesome!!! i dont know why but when i transfer my gif to my pc i cannot open it but on my phone it is loading! thank you very much
ilan Expert Licensed User Longtime User Feb 3, 2016 #15 here is a simple example Attachments Gif Decoder.zip Gif Decoder.zip 6.4 KB · Views: 363 Upvote 0
ilan Expert Licensed User Longtime User Feb 3, 2016 #16 small correction, if i send the gif from my phone to my email i can load it on my pc! Upvote 0
DonManfred Expert Licensed User Longtime User Feb 4, 2016 #17 ilan said: WOW, it is really working!! Click to expand... Great Last edited: Feb 4, 2016 Upvote 0