Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 11 Dec 2018, 18:05
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
/usr/lib/gtkdialog/box_splash and animated gif icons?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [54 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Wed 10 Oct 2018, 14:40    Post subject:  

Argolance wrote:
This is the Puppy Precise 5.7.3 gtkdialog-splash, to be renamed without the gz extension, the one that "does the job" and may be used as stand alone script, renamed otherwise so as not to conflict with the one with the same name in /usr/bin directory which refers to box_splash.
Isn't it, sometimes, in old pots that the best soup is made? Smile


Yes. works for me displaying .gif image correctly.
But (as you probably noticed) the -icon_width cannot be set, so depends on the size of the icon how big or small it's displayed AFAIK

Quote:
Maybe it's possible to have support for resizeable images and also make .gif images display correctly, but... will be difficult, I guess.

Quote:
Why could it be so difficult?
With a little goodwill, anything is possible!


Okay, better should have said that I personally have no clue how to do it Rolling Eyes

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
ITSMERSH


Joined: 02 May 2018
Posts: 568

PostPosted: Wed 10 Oct 2018, 15:07    Post subject:  

This old (Argolance's) gtkdialog-splash is interesting.

Downloaded and archived! Very Happy

Thanks!

_________________
RSH
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1707
Location: Japan

PostPosted: Wed 10 Oct 2018, 20:33    Post subject:  

Argolance wrote:
So, at the risk of sounding insistent, let me ask you again:
what is the advantage of adding a feature that cancels out another very useful one, especially if the animated icons were displayed correctly, regardless of their size? Shocked Rolling Eyes
You are insistent and I don't know why you keep asking me. I wasn't there when it happened, I have no part in it. I am innocent! Laughing
I can only speculate: When changing from gtkdialog3 to gtkdialog4, SVG support was the new craze and setting an arbitrary size for an icon and still have it displayed nicely was a nice new feature. Probably nobody noticed what this meant for animated GIFs. And if it was noticed then the new feature may have been considered more important than the lost feature. That's what is called a compromise Wink

fredx181 wrote:
Maybe it's possible to have support for resizeable images and also make .gif images display correctly, but... will be difficult, I guess.
In principle I did this already in MMview. Here the viewer shows images resized (= scaled to fit viewer) by default, but does not resize when the image is small enough for the viewer. This displays GIFs animated if they fit into the viewer and static if they don't.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3483
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 11 Oct 2018, 04:17    Post subject:  

Bonjour,
MochiMoppel wrote:
You are insistent and I don't know why you keep asking me.

... But I was right to be because you finally gave me the answer I was waiting for... Smile
By the way and since you mention it: I sincerely think MMView is a major tool that should be integrated to all Puppies and therefore it is a pity that it is not internationalized - you see how "insistent" I am...). Wink

Cheers.

_________________

Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Thu 11 Oct 2018, 11:38    Post subject:  

Just experimented for fun Laughing :



To run, download:
https://dl.dropboxusercontent.com/s/xg2fskhe7exqjg8/launch.tar.gz?dl=1

Extract launch.tar.gz and run "launch" (inside "launch" folder)
Has 15 seconds timeout, it's using the older gtkdialog-splash that Argolance shared earlier in this thread.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3483
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 11 Oct 2018, 13:25    Post subject:  

Bonsoir,
fredx181 wrote:
Just experimented for fun Laughing :

Very Happy Cool
When I saw your first gif image above, and now this one, I wondered how it is possible, from the video recording of a part of the screen, to build a gif file. Could you please give some indications, as this can be very useful, if not in this thread, in another one or by private message?
Thank you a lot.

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Thu 11 Oct 2018, 14:16    Post subject:  

Hi Argolance,

Tried to find documentation, not sure if it's the most accurate (may be a bit chaotic).

I use weX for the video screencast (created the video which is converted to .gif as shown in my above post).
http://www.murga-linux.com/puppy/viewtopic.php?t=107905
And:
http://www.murga-linux.com/puppy/viewtopic.php?t=113229

GifenC (convert video to .gif):
http://www.murga-linux.com/puppy/viewtopic.php?p=948724#948724

Forum member Mike Walsh jumped in, added some more info and provided a more extended .pet package, including gifenc:
http://www.murga-linux.com/puppy/viewtopic.php?p=998080#998080
And:
http://www.murga-linux.com/puppy/viewtopic.php?p=999364#999364

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3483
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 11 Oct 2018, 18:26    Post subject:  

Great! Thank you a lot.
_________________

Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1707
Location: Japan

PostPosted: Thu 11 Oct 2018, 20:41    Post subject:  

Tired of bug hunting? Laughing

Come on, the game is not over. Here is another one:
The -deco option does not work in box_splash. Worked fine in all versions of gtkdialog-splash.
Back to top
View user's profile Send private message 
ITSMERSH


Joined: 02 May 2018
Posts: 568

PostPosted: Thu 11 Oct 2018, 20:59    Post subject:  

fredx181 wrote:
Just experimented for fun Laughing :



To run, download:
https://dl.dropboxusercontent.com/s/xg2fskhe7exqjg8/launch.tar.gz?dl=1

Extract launch.tar.gz and run "launch" (inside "launch" folder)
Has 15 seconds timeout, it's using the older gtkdialog-splash that Argolance shared earlier in this thread.

Fred

Uaaahhh, that's really great.

Exactly what I need for my QTR Suite (my Music Suite to run, control and connect all the programs from a project). I have added a option to the launch script, so it combines the sound of a rocket launch (using aplay) for about 18 seconds (faded out) while displaying the gif image when starting QTR Suite.

Great, thanks!

_________________
RSH
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1012
Location: not Bulgaria

PostPosted: Fri 12 Oct 2018, 04:16    Post subject:  

Argolance wrote:
This is the Puppy Precise 5.7.3 gtkdialog-splash, to be renamed without the gz extension, the one that "does the job" and may be used as stand alone script, renamed otherwise so as not to conflict with the one with the same name in /usr/bin directory which refers to box_splash.
Isn't it, sometimes, in old pots that the best soup is made? Smile
Quote:
Maybe it's possible to have support for resizeable images and also make .gif images display correctly, but... will be difficult, I guess.

Why could it be so difficult?
With a little goodwill, anything is possible!


I'm not doing much computing these days, but checked by yesterday and noticed this interesting thread. I've since installed XenialDog32 along with that gtkdialog-splash version out of Puppy Precise into its own folder. From that folder I'm executing the command:

Code:
./gtkdialog-splash -placement top -icon "/fredsSavingSession.gif" -text "Please wait..." -close never &


and the gif animation is displaying fine. But one thing I'm not understanding from earlier post is that I find that with that old gtkdialog-splash version the animated gif is displaying fine with either gtkdialog3 (gtkdialog version 0.7.20, which is included in XenialDog32) or with gtkdialog4 (gtkdialog 0.8.3 included in XenialDog32). I understand that that old gtkdialog-splash does not set icon-width at all, but earlier post still seemed to suggest it would only work with gtkdialog3, which is not the case in my test. i.e. the animated gif shows fine with either gtkdialog3 or gtkdialog4 when using that ancient gtkdialog-splash script.

Do others find something different?

I haven't looked into the icon-width setting issue in the C code as yet; wanted clarity on the above first before checking that.

wiak
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1707
Location: Japan

PostPosted: Fri 12 Oct 2018, 05:07    Post subject:  

wiak wrote:
earlier post still seemed to suggest it would only work with gtkdialog3
This was my assumption, and the assumption was wrong.

The problems solely result from the very different gtkdialog-splash versions
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1012
Location: not Bulgaria

PostPosted: Fri 12 Oct 2018, 05:35    Post subject:  

MochiMoppel wrote:
wiak wrote:
earlier post still seemed to suggest it would only work with gtkdialog3
This was my assumption, and the assumption was wrong.

The problems solely result from the very different gtkdialog-splash versions


I was referring to Argolances earlier post, which did say gtkdialog3 only worked with that old Precise gtkdialog-splash (with animated gifs). But, as I said, I also found gtkdialog4 also worked fine in my test.

I'd rather not try to work out how any version of gtkdialog-splash or box_splash scripts work, since I'm not familiar with either code so would take me ages (or at least complicate the matter since so much more code involved). If someone could instead post a couple of simple gtkdialog programs that illustrate the effect of icon/pixmap width being used such that animated gif no longer shows (just a simple example - not a version of any splash per se - i.e. just a gif image loaded to show when it runs and when it won't), I could look at the C code to see if I could find a convenient workaround that could be applied inside gtkdialog code itself - rather than having to find external bash script/gtkdialog xml code workarounds - I believe I know the area of code to look at and it may be that if no icon width is specified then gtkdialog operation itself could be arranged to not upset animated gifs running (if that is the issue) - or is it all indeed nothing to do with gtkdialog4 (etc) and just a box-splash scripting problem?

wiak
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1707
Location: Japan

PostPosted: Fri 12 Oct 2018, 05:49    Post subject:  

wiak wrote:
or is it all indeed nothing to do with gtkdialog4 (etc) and just a box-splash scripting problem?
Yes.
If this time my assumption is correct then it is very easy to fix. Changing one value should do the trick.
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1012
Location: not Bulgaria

PostPosted: Fri 12 Oct 2018, 06:21    Post subject:  

MochiMoppel wrote:
wiak wrote:
or is it all indeed nothing to do with gtkdialog4 (etc) and just a box-splash scripting problem?
Yes.
If this time my assumption is correct then it is very easy to fix. Changing one value should do the trick.


If that proves to be the case I won't look into it further. My own assumption is that all will be fine if <width> is not used or set perhaps to -1 when animated gif the image (not really understanding the issue, I'm saying that based on the C code in gtkdialog4 where, by default, width and height default to -1). In gtkwialog (as addition not in gtkdialog), I some time ago added extra possiblity with the parameter 'preserve-aspect-ratio', which can be set to true or false, as described here. Not sure what difference using that would have in discussed animated gif scenario (possibly no difference - maybe someone or myself will get round to trying it sometime). That uses an alternative gtk call to load the pixmap (which allows the extra preserve-aspect-ratio parameter):

http://www.murga-linux.com/puppy/viewtopic.php?p=1001998#1001998

wiak
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [54 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0794s ][ Queries: 13 (0.0156s) ][ GZIP on ]