Author |
Topic |
|
wshowalter
USA
12 Posts |
Posted - Feb 25 2016 : 16:35:46
|
I can create animated gifs that when played in an ImageEnMView control loop nicely, and forever. However, once I've saved them to disk, and loaded back into a browser (I tried Chrome and IE), they play once, but don't loop.
I tried to force it to loop 65535 times using this call: _GIFMakeAnimate( TheFileName, 65535, 0, 0); but that didn't work either. I'm out of ideas.
Any help?
Cheers, Wayne |
|
xequte
38615 Posts |
Posted - Feb 26 2016 : 15:06:11
|
Hi Wayne
When using ImageEnMView.MIO.SaveToFile('x.gif'); the images should automatically loop.
Can you give me more information about your source image and process?
Also, did you try the animated GIF demo in \Demos\ImageEditing\
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
wshowalter
USA
12 Posts |
Posted - Feb 26 2016 : 17:58:06
|
Nigel,
I used the Animate GIF Editor demo app (I'm on version 6.0.1 by the way), compiled in XE8. I added 3 frames, using images from the demo. I saved the gif. When I run it in either IE or Chrome, it runs once but doesn't loop. Hmm. I've attached the gif.
The guts of my source code are as follows, gleaned from other forum posts.
{ My image in in TheChannelMosaicImage. It is a 12 bit grayscale image, so I have a routine that I wrote below to create it as an IEBitmap. This basically sets the pixeltype to 24 bits, and writes the pixels as TRGB values approximating the grayscale from the image. } TheChannelMosaicImage.CreateAsIEBitmap;
x := FGifView.AppendImage;
FGifView.SetIEBitmap( x, TheChannelMosaicImage.IEBitmap);
{ Set the Gif's image index. } FGifView.MIO.Params[ x ].GIF_ImageIndex := x;
{ Free the Bitmap. } FGifView.ReleaseBitmap( x );
Then later, after adding all of the frames:
FGifView.MIO.SaveToFileGIF( TheFileName );
Regards, Wayne
|
|
|
wshowalter
USA
12 Posts |
Posted - Mar 07 2016 : 10:35:18
|
Nigel,
Today I upgraded to 6.2.2, build 32900. I still don't get looping in your demo application! Attached is my re-saved Woofer gif. I also created a new gif from scratch, and it doesn't loop. !! What do you think is my problem?
Wayne
|
|
|
xequte
38615 Posts |
Posted - Mar 07 2016 : 13:01:59
|
Hmm, that's weird. Are you just using the GIF animator demo?
As a sanity check (to ensure you are actually using the latest version), are you able to set ImageEnView1.BackgroundStyle := iebsBlurredImage; (and see the blurred background of a portrait image).
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
wshowalter
USA
12 Posts |
Posted - Mar 07 2016 : 14:44:47
|
Nigel,
Yes, I am using the Animated GIF Editor demo app from 6.2.2, unchanged. I can set the background style as you suggested (although the control is named IEMView1, not ImageEnView1). I set this in the form designer, also in FormCreate, and also right before saving, but I never see any actual image in the background. Hmm.
I attached a screen shot of my Delphi desktop, and you can see the ImageEn version 6.2.2. I uninstalled ImageEn again, deleted the ImageEn folder in Program Files x86, then reinstalled, just to be sure.
Wayne
|
|
|
xequte
38615 Posts |
Posted - Mar 07 2016 : 17:27:20
|
Sorry Wayne,
I've actually found the issue now, and will have a fix for your shortly.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
xequte
38615 Posts |
|
bmesser
United Kingdom
224 Posts |
Posted - Jun 03 2016 : 08:43:05
|
Hi Nigel
I've also noticed that when I publish an animated GIF to WordPress that I've created with ImageEN it only loops once and then stops as well.
When I load into your demo it loops forever.
I've tried one of your example in WordPress and that loops continuously.
Did the problem that you find exist in earlier version? I use 5.1.1. Is there an easy fix that I can apply?
Bruce.
PS I've tried to attach an example as an image and as a file for you to see, but your server doesn't seem to like it (855 kb). |
|
|
xequte
38615 Posts |
Posted - Jun 06 2016 : 03:18:47
|
Hi Bruce
What version of Delphi do you use? This fix applied to any version of ImageEn running on a Unicode version of Delphi.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
bmesser
United Kingdom
224 Posts |
|
xequte
38615 Posts |
Posted - Jun 06 2016 : 20:16:53
|
Hi Bruce
Email me for a few changes you need to make to the source...
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
aouatif
8 Posts |
Posted - Feb 03 2017 : 03:31:10
|
Hi, I am having the same problem, my exported Gif file doesn't loop. I use ImageEn version 4.3.0. Any Help ? |
|
|
xequte
38615 Posts |
Posted - Feb 03 2017 : 13:16:31
|
Hi
What version of Delphi do you use? The fix applies only to older versions of ImageEn running on a Unicode version of Delphi.
If so, you can email me for updated source, or extend your licenses to get the latest version:
http://www.imageen.com/order/
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
|
Topic |
|