It is currently April 20th, 2024, 8:17 am

[Solved] Weatherradar Loop-Animation brokes since 4.5.11 !?

Get help with creating, editing & fixing problems with skins
monk
Posts: 8
Joined: May 10th, 2022, 12:07 pm

[Solved] Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by monk »

hello my friends,
for many years i'm only a reader and copy/paster from all your incredible stuff here and deviantart.

... thank you !

but now i'm at the end of my abilitys.

problem:
- many years to 4.5.10 imageloop works with many tools (gif2frames/imagemagick)
- 4.5.11 - 4.5.13 only shows the first image

for sure loop measure problem !?
maybe a bug i thinked !?
but nowhere i could find anything with same problems !?

i think is easier to post the complete skin ...
i used since 2020 'easy2convert' for the gif extraction,
newest 3.1.0.0 (own make portable) version is in the skin.
skin is made with 4.5.10.

... whats wrong ? ... plz give me a bumb :-(
... and sorry for bad english
You do not have the required permissions to view the files attached to this post.
Last edited by monk on May 17th, 2022, 10:26 am, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by balala »

monk wrote: May 10th, 2022, 2:05 pm ... whats wrong ? ... plz give me a bumb :-(
Sorry being so late with the reply, but if you are still interested...
There is nothing wrong with the [ImageAnimation] Loop measure (I suppose this is what you want to say by "imageloop"), it works alright. What is giving you the issue are the brackets in the name of the extracted images / frames. So for instance the @Resources\current[1].png file should be @Resources\current1.png, in order to get the animation playing. Recommend to get rid of those brackets and modify the code accordingly (removing the brackets from the !SetOption bang of the FinishAction option of the [ImageExtract] measure).
monk
Posts: 8
Joined: May 10th, 2022, 12:07 pm

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by monk »

@balala thank you for your help!
yes your right, the brackets! ... i renamed it manualy and the loop-animation does his job!
thank you for this push!

can you advise me briefly before I waste hours of work uselessly?

problems/questions:

. what has changed rainmeter 4.5.11 in february? (brackets worked until rainmeter 4.5.10)
... its a bug, and i can hope for fix?

. what can i do now? 'gif2png' give me no command line entry to extract without brackets.
(dokumentation.chm in the skin)

. i would hate to go back to 'imagemagick', because i have other problems there with
my .gif source ... sometimes 20.000x20.000px output, drive cpu crazy!

. can I somehow rename it with rainmeter-code or windows-code after extract?

... or another tip?
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by balala »

monk wrote: May 13th, 2022, 12:04 pm yes your right, the brackets! ... i renamed it manualy and the loop-animation does his job!
:thumbup:
monk wrote: May 13th, 2022, 12:04 pm . what has changed rainmeter 4.5.11 in february? (brackets worked until rainmeter 4.5.10)
... its a bug, and i can hope for fix?
Don't know if anything related to this has been changed, don't realize. Maybe someone else will have an idea. And am not sure if this is a bug, but maybe you could post your question to the Bugs & Feature Suggestions section.
monk wrote: May 13th, 2022, 12:04 pm . what can i do now? 'gif2png' give me no command line entry to extract without brackets.
(dokumentation.chm in the skin)
I assume best would be to get those file names with no brackets, from the beginning. But don't know how this can be done with gif2png, because I never used this app. Probably someone who has used it, might help.
monk wrote: May 13th, 2022, 12:04 pm . can I somehow rename it with rainmeter-code or windows-code after extract?
Not sure this is a good idea, but let's see...
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by balala »

balala wrote: May 13th, 2022, 6:03 pm Not sure this is a good idea, but let's see...
Didn't find a suitable solution so far. Sorry...
monk
Posts: 8
Joined: May 10th, 2022, 12:07 pm

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by monk »

balala wrote: May 13th, 2022, 8:33 pm Didn't find a suitable solution so far. Sorry...
it's perfectly ok, you can't know everything and you already help enough people here.

I thank you anyway.

I will now go to the bug area.
I also wrote to the 'gif2png' support and asked if there was one
undocumented super trick for name output.

if need be, I'll stay with 4.5.10 and build another one on the side
skin with 'imagemagick', and test if it now works better with my .gif source.

best regards
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by balala »

monk wrote: May 14th, 2022, 11:02 am it's perfectly ok, you can't know everything and you already help enough people here.
I also wrote to the 'gif2png' support and asked if there was one
undocumented super trick for name output.
Good idea! If you get a solution, please let me know as well.
monk wrote: May 14th, 2022, 11:02 am if need be, I'll stay with 4.5.10 and build another one on the side
skin with 'imagemagick', and test if it now works better with my .gif source.
I'm extremely surprised it did work with previous version of Rainmeter and doesn't with the actual, however there might be some things which I didn't realize.
monk
Posts: 8
Joined: May 10th, 2022, 12:07 pm

Re:Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by monk »

ok ... the problem was solved by @brian in the bug forum :thumbup:

https://forum.rainmeter.net/viewtopic.php?t=40631&sid=18b1aff1ae53669bb7e91826fd625bf3
Brian wrote: May 16th, 2022, 11:03 pm Unfortunately this is one of those side effects that comes from fixing a long-standing variable parsing issue a few months ago.

To fix this particular problem, the solution is to "double escape" your measure name inside your bang.

FinishAction=[!SetOption ImageMeter ImageName current[[**ImageAnimation**]].png][!EnableMeasure ImageAnimation]

-Brian
btw.: even looks like the "double escape" solution works for both older and newer (4.5.10/4.5.11) versions!

'easy2convert support' has not yet contacted me because of the special name output via command line.
I'll write it here if that should happen.

best regards to balala/brian and everyone here...
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Re:Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by balala »

monk wrote: May 17th, 2022, 10:25 am ok ... the problem was solved by @brian in the bug forum :thumbup:
Very good and a smart solution. Didn't know about this, but just saved this for later uses. Good to be known...
monk wrote: May 17th, 2022, 10:25 am 'easy2convert support' has not yet contacted me because of the special name output via command line.
Don't worry, has no importance anymore.
monk
Posts: 8
Joined: May 10th, 2022, 12:07 pm

Re: [Solved] Weatherradar Loop-Animation brokes since 4.5.11 !?

Post by monk »

... for the sake of completeness ... the 'easy2convert' support contacted me today with good news.
an update to 3.2.0.0 (06/27/2022) now allows you to implement the output name without square brackets via the command line.

changelog:
What's new in 3.2
Mask syntax additions, %frame% macro
Few improvements and fixes, docs update
easy2convert support email:
-----------easy2convert-support:--------------
Dear Monk,
Sorry for the late response!
If it's still actual for you:
We've recently released an update with option that could be a solution in
your case.
Now you may specify the frame numbers position within the output filename
with additional macro %frame% in a filename mask.

By default, it looks like %filename%.%ext% and for animated GIFs the
frame numbers will come in the brackets, but when specified, e.g.
%filename%-%frame%.%ext% the output files would be like these:
image-1.png
image-2.png
image-3.png and so on.

For using with cmd you may want to add --filename-mask=STR option in
your command-line.

Hope this helps!
--
Best regards,
Easy2Convert Support
... it works! ...maybe this rainmeter problem was even the stumbling block for the update! :thumbup:

So who realize similar projects with 'easy2convert'
and want to take a look...
I adjusted my skin accordingly:
256-WetterRadar_5.3.rmskin
You do not have the required permissions to view the files attached to this post.