Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#294 closed enhancement (fixed)

Animated Gif images

Reported by: Fernando Martín Morillo Owned by:
Priority: normal Milestone: 4.0-2016R1
Component: foreign class Version: 3.9-2015R1
Severity: minor Keywords:
Cc: OS Platform: AmigaOS3
Blocked By: Blocking:
Release Notes:

Description

Hi:
I have interest in knowing if it will be available, if it is already or what's necessary. It would be great to be able to use animated gifs as images.

Thanks,
Retrofan

Change History (15)

comment:1 Changed 22 months ago by Fernando Martín Morillo

Sorry, it's the MUI4 version of AmiKit that I am using.

comment:2 Changed 22 months ago by Thore Böckelmann

Component: undefinedforeign class
Priority: undecidednormal
Resolution: wontfix
Status: newclosed

Animated GIFs cannot be used like the other images (i.e. #?.mf0/1, #?.mbr, #?.mi1, #?.mim), because they contain an unpredicatble number of images. And they are really supposed to be animated instead of representing two states of an image.

However, there is GIFAnim.mcc available on AmiNet. This class allows to include animated GIFs in an application and to have them constantly animated. I think this is what you are really looking for.

Last edited 22 months ago by Thore Böckelmann (previous) (diff)

comment:3 Changed 22 months ago by Thore Böckelmann

Milestone: future release4.0-2016R1

comment:4 Changed 22 months ago by Fernando Martín Morillo

Thanks. But then to use a gif image the program -AmiModRadio- should be made using it or can I just try using a gif image as long as the gifanim.mcc is installed?

comment:5 Changed 22 months ago by Thore Böckelmann

You should check the availability of GIFAnim.mcc ahead of creating your application and output an appropriate error message. Otherwise creating the application will fail silently if GIFAnim.mcc is not installed.

Just take a look at the developer stuff and demo sources supplied with the class' archive. It should become obvious how to use the class.

It is possible to use simple GIF images with MUI's internal Image class if an appropriate GIF datatype is available, but for GIF animations you will see the very first frame of the animation only. This defeats the purpose of GIF animations.

comment:6 Changed 22 months ago by Fernando Martín Morillo

Resolution: wontfix
Status: closedreopened

tboeckel I've been two hours now trying to find how did I got rid of the borders with white background of the buttons (play, pause, etc) that AmiModRadio has. Could you please tell me?

comment:7 Changed 22 months ago by Thore Böckelmann

Resolution: fixed
Status: reopenedclosed

There is no need to reopen a ticket if your question is absolutely unrelated to the ticket itself.

If you have a problem which is neither a bug nor an enhancement request you can contact me privately. But I need more information (i.e. source code) than just "how do I this or that" without any details.

comment:8 Changed 22 months ago by Thore Böckelmann

I think you are referring to a code section like this:

	sprintf(image_path, "5:%s/data/Play40x40.iff", current_directory_name);
	_IM_label_play_spec = string_duplicate(image_path);
	object->IM_label_play = ImageObject,
		MUIA_Background, MUII_SHINE,
		MUIA_Image_Spec, _IM_label_play_spec,
		MUIA_HelpNode, "IM_label_play",
		MUIA_InputMode, MUIV_InputMode_RelVerify,
		MUIA_Frame, MUIV_Frame_ImageButton,
		MUIA_Image_FreeVert, TRUE,
		MUIA_Image_FreeHoriz, TRUE,
		MUIA_FixHeight, 40,
		MUIA_FixWidth, 40,
	End;

Honestly, you are setting a white (SHINE pen) background yourself and complain that you get exactly what you are asking for? I suppose the images have a transparent background.

comment:9 Changed 22 months ago by Fernando Martín Morillo

Hi:
Thanks. Yes, I wanted to asked you in private, but I didn't find any way.
Sorry, I'm not the author of the program, it is Tygre, and I don't have any idea about code.
Don't worry, I commented him about what you told me wih code the last time.

It's very very extrange. I've been a lot of hours changing settings and I find no way to quit the borders around the play buttons. I just try with the MUI4 prefs, not with code.

Well, you can say that the program works this way. NO. The thing is that I've got it running (I use the same AmiModRadioprogram in an external partition on WinUAE) and I've got no border around the play (play, pause, reload, forward, stop) buttons.

Look at this: http://hostthenpost.org/uploads/1b46a631c7edab771f010587486308f8.png
No border around the buttons.

But for example I saved another MUI config by mistake in an AmiKit hdf and now I can't have that again. I always get something like this:
http://hostthenpost.org/uploads/ec383dc0f61cc9fbd988832d66d6760c.png

Yes, in the first I use RTG and not in the other, But I had before that same result without borders using AGA there.

As I say I've been trying for several hours, trying all of the options and I don't have any idea how did I get rid of them.

Also, I've tried saving the good config in mui/presets and then load that same config in the other OS (same AmiKit), but I have the borders again. :(

comment:10 in reply to:  9 Changed 22 months ago by Thore Böckelmann

Replying to Retrofan:

Thanks. Yes, I wanted to asked you in private, but I didn't find any way.

My EMail address is no secret. It is contained in the Changelog file about 1000 times. But just for the case: tboeckel@…

It's very very extrange. I've been a lot of hours changing settings and I find no way to quit the borders around the play buttons. I just try with the MUI4 prefs, not with code.

AmiModRadio sets an "image button" border. That one is configured on the "Images" page of MUI prefs. Most probably it was set to no border before for you. Start MUI prefs from within AmiModRadio, otherwise you will edit the global MUI config which applies to all MUI applications. You will want to modify the config for AmiModRadio only.

comment:11 Changed 22 months ago by Fernando Martín Morillo

Yes, I always enter though the AmiModRadio program itself to the MUI prefs. Thanks I will look about the images.

comment:12 Changed 22 months ago by Fernando Martín Morillo

That was it! Images, Background, Frame, Visibility 0%

Thanks a lot !!

comment:13 Changed 22 months ago by Fernando Martín Morillo

One last question: I want to add AmiModRadio in my next AKReal update.

What prefs of MUI and where do I have to save them to have this same setup if I want them installed with my update.

comment:14 in reply to:  13 Changed 22 months ago by Thore Böckelmann

Replying to Retrofan:

What prefs of MUI and where do I have to save them to have this same setup if I want them installed with my update.

AmiModRadio's MUI config will be saved in ENV(ARC):MUI/NONE.prefs.

According to AmiModRadio's source the application's base name is set to "NONE" which is not a very lucky choice. This should be changed.

comment:15 Changed 22 months ago by Fernando Martín Morillo

Thanks. Yes, I saw that about None.prefs with SnoopDos but I wasn't sure if that prefs existed before.

Note: See TracTickets for help on using tickets.