Reading gifs

I have a problem with reading the frames of a gif I'd like to get what someone would see after opening and playing a gif file, however I can't figure out how to properly account for transparency and update methods Can anyone help? I'm basically looking for a BufferedImage[] frames(File gifFfile) method
9 Replies
JavaBot
JavaBot5d ago
This post has been reserved for your question.
Hey @ShadowOfHeaven! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
dan1st
dan1st5d ago
What are you currently doing that doesn't account for transparency?
JavaBot
JavaBot5d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
ShadowOfHeaven
ShadowOfHeavenOP5d ago
well I'd send you my (read as: copied of the internet & modified by deepseek and me to fix some of its errors) current code, but I think that'd just make it a lot more confusing the thing is that I can't get rid of the very first frame being the background of every frame and when I do, the some frames get invisible pixels in parts that do not move
JavaBot
JavaBot5d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
dan1st
dan1st2d ago
Are you doing something like this? https://stackoverflow.com/a/10627458/10871900
Stack Overflow
Convert each animated GIF frame to a separate BufferedImage
I want to be able to take an animated GIF as input, count the frames (and perhaps other metadata), and convert each to a BufferedImage. How can I do this?
ShadowOfHeaven
ShadowOfHeavenOP2d ago
ah yeah, I was but uh, I found a neat wrapper library for the twelvemonkeys library which simplified things and it all works now thanks tho
JavaBot
JavaBot2d ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot2d ago
Post Closed
This post has been closed by <@711986917658329169>.

Did you find this page helpful?