3,173 questions
0
votes
1
answer
69
views
(Non-infinite-loop) animated GIF won't restart on Firefox with the normal method
I'm trying to make an interactive button in my single-page webapp, where a non-looping animated GIF can be restarted upon a user interaction, or specifically a click.
I've looked through the Web and ...
3
votes
1
answer
187
views
Change text and GIF color when they overlay other GIF
Element A is a div with a black text (span element) and a black text GIF (img element) that has position fixed. Element B is a color GIF (img element) that does not have position fixed and when you ...
1
vote
0
answers
119
views
.gif Compose Multiplatform (Android & iOS)
How can I display .gif images in Compose Multiplatform on Android and iOS?
Coil supports gifs only on Android
Using a native implementation with UIImageView on iOS doesn't work, since the gifs have a ...
0
votes
0
answers
32
views
How do you use devicepixelratio to get a lossless canvas (with Gifa11y)?
I've been using Gifa11y on my website to automatically make all the gifs on my page able to be paused by the user. If you're unfamiliar, Gifa11y is vanilla javascript and creates still images from ...
0
votes
1
answer
164
views
Qt play gif animation in QTextBrowser or QTextEdit container ( html format )
In Qt Creator gif animations are played using the movie.play() methode (using a QLabel container).
However, if I wish to play an animation in a QTextBrowser or QtextEdit container, using html notation ...
1
vote
0
answers
86
views
Flutter: How to avoid caching of gif image
I'm using Image widget to display a gif in a specific screen:
Image.asset('assets/images/5SecondsCountDownGif.gif'),
So, when this screen is displayed, user is supposed to see a 5 seconds count down, ...
0
votes
1
answer
61
views
Why doesn't React update my image URL event after adding in a key to trigger a re-render
So here is my code:
<img src={currentQuestion?.GIF_URL} key={`${GIF_URL}-${currentIndex}`} alt='gif' style={{margin: '0 auto'}} />
As you can see I've added in a key to tell React to trigger a ...
0
votes
1
answer
313
views
How can I create a GIF image using Pillow and imageio with Python?
I have the following code that creates 60 frames using Pillow in Python 3.11.10 and that I want to use to create a GIF image (repeating endless), with a duration per frame of 0.1 seconds. The first ...
0
votes
1
answer
75
views
cropping a gif file by removing the white spaces [duplicate]
I am trying to crop the gif by identifying the objects within the file and eliminating the spaces where there are no objects. I have a code which splits the gif by processing each frame of the gif. ...
1
vote
0
answers
48
views
Python: creating af gif from multible images with different duration for each image
I am trying to create a gif using 3 different images where I specify the duration for each image.
Is there a good way to make the duration variable for each image?
Alternatively, is there a way to ...
0
votes
1
answer
45
views
PIL cannot set loop of GIF to 1
I am trying to convert a gif, first crop it then convert it into a gif which only loops once. It loops only once when I use Microsoft "Photo" app. However when on a html page it loops twice.
...
0
votes
1
answer
320
views
Synchronize two separate .GIFs to play at the same time without JS?
I'm working on creating a somewhat complex custom CSS page for Itch, which restricts me to using only CSS and HTML—no scripts allowed.
I'm facing an issue where I need two separate GIFs to play ...
0
votes
1
answer
85
views
How do I split an animated gif into its individual images in Tcl/tk 8.4 or 8.6 with pure Tcl/Tk only
I'm working on some compatibility stuff with my freeware hurricane
tracker, JStrack, which has been based on Tcl/Tk 8.4 for a LONG time
(didn't know 8.6 was 100% backwards compatible, so now swapping ...
0
votes
0
answers
68
views
Python Tkinter GIFs Overlapping
I am using tkinter to create a project. It runs fine, until f9 is pressed of which multiple instances of a gif sometimes overlap themself. I have no idea why this is happening, I have tried different ...
0
votes
1
answer
62
views
Animate a MWE GIF in R
Could you please tell me why this MWE of an animated GIF, compiled in R, does not animate?
library("ggplot2")
library("gifski")
library("gganimate")
library("dplyr&...
2
votes
0
answers
99
views
Adjusting hue & saturation on all frames of a GIF
I am trying to apply hue and saturation effects to all frames of a gif using this library.
The adjust.Hue() and adjust.Saturation() functions accept an *image.RGBA, so I am converting the *image....
0
votes
2
answers
140
views
how to prevent gif reset when the playback finishes in flutter
I'm using gif_view to control gif in flutter and when it finishes playing, it is coming to initial position, but I want it in last position itself.
import 'package:gif_view/gif_view.dart';
final ...
3
votes
1
answer
136
views
How can I create a zoom-in animation GIF using Python?
In this question, I created a GIF that shows the convergence of pentagons using a zoom-in animation. I used GeoGebra to graph and animate 50 pentagons.
However, zooming in on the 50th iteration ...
0
votes
1
answer
123
views
Gifsicle '--explode' via web not working as expected
I am importing gifsicle via 'https://unpkg.com/[email protected]/dist/gifsicle.min.js' and have successfully used it to optimize my gif files generated with gif.js.
However, I am now ...
1
vote
1
answer
493
views
java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0)
Error:
java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0)
at java.base/java.nio.Buffer.createCapacityException(Buffer.java:279)
at java.base/java.nio.Buffer.<init>...
0
votes
0
answers
77
views
How to display transparent GIFs using AutoHotkey script when pressing CapsLock?
I am trying to create a script in which if you press the capslock key a gif image appears on the screen, but the gif image appears with a solid black background, it is not transparent, what am I doing ...
1
vote
0
answers
117
views
How to add a thumbnail to a Shopify slider section
I'm working on a Shopify store where we use several GIF images to showcase product features. However, I've noticed that GIFs can take a while to load, especially on slower connections, which impacts ...
0
votes
0
answers
60
views
Losing audiovisual sync when processing an animated GIF with ImageIO and PIL
I am trying to chromakey a GIF and the result is weird. The GIF should have a framerate of 30 FPS, but when I put the chromakeyed and transparent frames back together the GIF isn't what it should be. ...
1
vote
1
answer
177
views
How to play a GIF infinitely in XAML?
My problem is that in my code the GIF plays once and then gets stuck. I've already tried various ways to solve this but unfortunately nothing helped.
I tried stopping it, then setting it to position ...
1
vote
1
answer
476
views
How to composite a static background image and gif with sharp nodejs package
It seems that no matter how much you look online for compositing a still background image (like png or jpeg) with a gif there are no complete solutions. Overlaying a gif on a still background seems to ...
1
vote
1
answer
843
views
Using node js sharp package composite function is not giving an animated result
I have created a simple program using discord.js, what I want is to combine a still image with an image containing animated frames, then the bot will send the result of the animated image and the ...
1
vote
2
answers
69
views
Java Swing drawing gif as background to several JButtons and JLabels
I want to draw a gif as background to the starting window of my java project (small game in Java swing for school). Here's my code so far:
package graphic;
import javax.swing.*;
import java.awt.*;
...
0
votes
0
answers
116
views
Save .gif with gganimate respecting the original ggplot
I have the following code which so far, works fine. The problem is when I try to save the animated gif. All of my tries end up losing quality of image, the text annotations get misplaced and the ratio ...
0
votes
0
answers
185
views
Javascript Image and GIF Optimization and Compression
So I am generating GIF images by taking imageData stored in an array, undoStack[], and using gif.js to compile them into a gif. I found out that the images are coming out quite large in comparison to ...
0
votes
0
answers
109
views
Powershell GUI, GIF and Runspaces
I currently have a GUi that works with a zip file, that contains a few thousand .zip files of .csv data
My script currently works correctly, but im looking to add a gif that is displayed while the job ...
1
vote
0
answers
39
views
Progress bar / seek for Gif [duplicate]
How can I seek playback time of a gif?
I'm trying to have a progress bar for gifs to pause/seek at specific gif's playback time.
I couldn't find any HTML DOM property/interface like videoElement....
1
vote
0
answers
972
views
Loading worker was blocked because of a disallowed MIME type ("text/html") when trying to load gif.js library
I'm trying to use the gif.js library by manually importing the gif.js and gif.worker.js files in a script tag as such:
<script type="text/javascript" src="./js/gif.js"></...
0
votes
0
answers
90
views
Flutter: GIF file load slow in Oneplus devices but works fine in others devices
I'm attempting to load a .gif file from the asset folder, but it loads very slowly on OnePlus devices. I've tested it on other devices, and the gif works well on them. I've tried using the ...
-2
votes
1
answer
196
views
Converting Multiple Videos from S3 into GIFs with Random Frames using Python and Lambda
I have a collection of videos stored in an S3 bucket, and I'm looking to automate the process of converting these videos into GIFs using Python and Lambda. Each resulting GIF should be precisely 10 ...
0
votes
0
answers
2k
views
SharePoint - Successfully adding GIFS to a thumbnail in a modern page news article
I can successfully add gifs to an Image webpart on a SharePoint modern page. This works well.
What I would also like to do is add a gif to the thumbnail within a SharePoint news articles page ...
0
votes
0
answers
149
views
Playing gifs bug in flutter
In my flutter app I have a screen to show exercises names with gifs, the list is too long, when I add the gifs to the list, the gifs are not playing as expected, the gifs are only 2 seconds, when the ...
0
votes
1
answer
56
views
Is there a way to create a GIF from network images in flutter?
I want to display a GIF in my app that will be created from a list of network images. Can it be implemented using the image package just like creating GIF from local asset images?
0
votes
0
answers
103
views
Java swing problem transparent animation gif
Why in java when I try to use a transparent gif animation its image is distorted or has pixel inconsistency? I wanted to make sure if the problem was Jlabel's problem, but I showed the gif in ...
1
vote
1
answer
108
views
Animation of geom_circle in ggplot2 displays unintentional interpolated circles
I created a GIF animation with gifski package in R.
Here is the input and output data (sorry I do not know if it can be shared via online storage service).
https://drive.google.com/drive/folders/...
2
votes
1
answer
136
views
Desynchronizing GIFs
I don't know how to desynchronize these two GIF images.
I tested them in the following browsers: Opera and Edge.
When I start the first GIF (on the left), I expect the second one to begin its ...
0
votes
1
answer
169
views
Start a Gif on Hover
I cannot figure out how to make my button start a gif while hovered and if its not hovered - it goes back to the previous background, and again on hover its start a gif from the starting position.
...
0
votes
0
answers
169
views
How to get an IP address and IP based location of another computer/user embedded on a gif without asking the users permission using javascript?
THESE ARE MY PRESENT CODES FOR GEOLOCATION (ASKING FOR PERMISSION):
FOR LOCATE.HTML FILE:
<!DOCTYPE html>
<html>
<body onload="getLocation()">
<iframe src="...
0
votes
1
answer
97
views
How to Adjust Frame Delay for Each Image in Swift when Generating a GIF?
Currently I’m working on a project to create a GIF from some images. I used a method (generateGifFromImages) from GitHub that takes a CGImage structure, which allows you to set the frame delay for ...
0
votes
1
answer
61
views
gif tumbnails goes blank after upload and when used they are still blank
I do not know if it was like this from the beginning or not. After I upload my .gif files into my Wordpress library they shown as blank and even after using them in the webpage by any webpage builders(...
0
votes
1
answer
120
views
Memory leak issue trying to combine [UIImage] to single GIF image
I am trying to combine multiple UIImage as 1 gif animated image. I have a problem if the number of frames (UIImages) is more than 20. The app is closing because of memory leaks. When createGIF starts ...
0
votes
1
answer
625
views
Create gif from tiff images and preserve resolution using PIL
I want to export tiff RGB images as a gif. Following code works but the images have very bad quality (lots of noise introduced).
import numpy as np
from PIL import Image
list_files = ["foo.tif&...
0
votes
0
answers
253
views
Using saveGif with graphics object in p5.js?
I'm trying to save a series of images into a gif. I am trying to do this entirely in P5 without any other libraries or server side infrastructure. I got saveGif to work if I look at the main canvas, ...
0
votes
2
answers
67
views
Why does my wrapper not expand beyond a certain height?
To explain it as shortly as possible; I have two pictures inside a wrapper. I want these pictures to retain a ratio 3:2. I want the pictures to just push the next object further down the page. This ...
0
votes
1
answer
215
views
Streamlit app: Displaying multiple GIFs at once coming from the same folder
I want to display multiple GIFs coming from the same folder within a streamlit app.
The following parcel of code compiles but does not display nothing at all.
import streamlit as st
import base64
...
0
votes
0
answers
427
views
How to load a gif image from resources [duplicate]
Following this question and not being able to solve it I have decided to use a gif to reproduce a movement on a splash screen.
var img = new Image()
{
Width = 100,
Height = 70,
...