ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Saved Animated Gif Doesn't Loop in Browser
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wshowalter

USA
12 Posts

Posted - Feb 25 2016 :  16:35:46  Show Profile  Reply
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

38225 Posts

Posted - Feb 26 2016 :  15:06:11  Show Profile  Reply
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
Go to Top of Page

wshowalter

USA
12 Posts

Posted - Feb 26 2016 :  17:58:06  Show Profile  Reply
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

Go to Top of Page

wshowalter

USA
12 Posts

Posted - Mar 07 2016 :  10:35:18  Show Profile  Reply
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

Go to Top of Page

xequte

38225 Posts

Posted - Mar 07 2016 :  13:01:59  Show Profile  Reply
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
Go to Top of Page

wshowalter

USA
12 Posts

Posted - Mar 07 2016 :  14:44:47  Show Profile  Reply
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

Go to Top of Page

xequte

38225 Posts

Posted - Mar 07 2016 :  17:27:20  Show Profile  Reply
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
Go to Top of Page

xequte

38225 Posts

Posted - Mar 09 2016 :  13:36:00  Show Profile  Reply
Hi

We have a fix available now. Please email me for the source.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
221 Posts

Posted - Jun 03 2016 :  08:43:05  Show Profile  Reply
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).
Go to Top of Page

xequte

38225 Posts

Posted - Jun 06 2016 :  03:18:47  Show Profile  Reply
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
Go to Top of Page

bmesser

United Kingdom
221 Posts

Posted - Jun 06 2016 :  05:19:08  Show Profile  Reply
Nigel

I'm running Delphi XE6.

I still can't attach an example for you either as an image or attachment (500 - Internal server error).

Perhaps you can see it with a link to my blog.

http://xmetman.com/wp/wp-content/uploads/2016/06/0630-1045-on-Fri-3-Jun-2016.gif

Bruce.




Go to Top of Page

xequte

38225 Posts

Posted - Jun 06 2016 :  20:16:53  Show Profile  Reply
Hi Bruce

Email me for a few changes you need to make to the source...



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

aouatif

8 Posts

Posted - Feb 03 2017 :  03:31:10  Show Profile  Reply
Hi,
I am having the same problem, my exported Gif file doesn't loop. I use ImageEn version 4.3.0. Any Help ?
Go to Top of Page

xequte

38225 Posts

Posted - Feb 03 2017 :  13:16:31  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: