A bug in the export snapshot command

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Tue Sep 28, 2021 7:13 pm

SparkOut wrote:
Tue Sep 28, 2021 7:09 pm
On Windows 9.6.5_64 bit version, I get the same broken gif snapshotted, whether output to file or to a newly created image.
Ah, bless you SparkOut! I am not alone.

Thanks for checking.
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: A bug in the export snapshot command

Post by richmond62 » Tue Sep 28, 2021 7:33 pm

Obviously a Windows problem.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: A bug in the export snapshot command

Post by Klaus » Tue Sep 28, 2021 7:42 pm

RCozens wrote:
Tue Sep 28, 2021 7:11 pm
That is the essence of my question Klaus: Why can't LiveCode resolve the "as type" argument at runtime? I have the workaround in the form of a switch, but wonder if there is a specific reason why "as type" can't be resolved at runtime when so many other command arguments can be.

Not a big issue; just an idle wondering.
OK, maybe a good reason to file an "enhancement request" for this.

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Wed Sep 29, 2021 2:19 am

richmond62 wrote:
Tue Sep 28, 2021 7:33 pm
Obviously a Windows problem.
I was going to ask what platform you are running.

Would you be willing to try running the logic from my stack (364KB)?

If so, send me an eAddress privately and I will send you a copy.
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Sat Oct 02, 2021 6:21 pm

richmond62 wrote:
Tue Sep 28, 2021 7:33 pm
Obviously a Windows problem.
Richmond has run Serendipity Editors on MacOS, and can create GIF files from screen rectangle snapshots.

I have modified the script so that screen snapshots can only be exported on MacOS.

If anyone would like to test this on Linux, eMail me privately with an eAddress and I will send you a copy that allows screen snapshots to be exported to GIF files on that platform.

Cheers!
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Sat Oct 09, 2021 9:10 pm

I tried to report this as a bug today, and I seem to have encountered a bug in the bug reporting system.

I created a simple example stack and listed 10 steps for testing it (the later now comments in the stack script). I've attached the stack if anyone wants to check it out.

Anyway, the bug entry screen lists sections 1 - 7. I completed sections 1 - 6, and then selected the submit bug report button, which is located directly under the "7". I got an error saying I needed to go back and enter a Windows version #. I go back to the screen, and once again I see no place to enter the Windows version. I tried this three times. Am I missing something?
Attachments
GIF Export Bug.zip
(3.85 KiB) Downloaded 107 times
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: A bug in the export snapshot command

Post by mwieder » Sat Oct 09, 2021 11:49 pm

Rob-

It's question/section #4.

Image
Attachments
WVersion.png
WVersion.png (5.52 KiB) Viewed 3337 times

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Sun Oct 10, 2021 6:24 pm

mwieder wrote:
Sat Oct 09, 2021 11:49 pm
It's question/section #4.
Thank you kindly. It's filed as Bug 23370

Cheers!
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Sun Oct 10, 2021 7:58 pm

Klaus wrote:
Tue Sep 28, 2021 7:42 pm
OK, maybe a good reason to file an "enhancement request" for this.
Enhancement request #23371 has been filed.
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

RCozens
Posts: 138
Joined: Thu Aug 05, 2021 6:42 am
Location: Manchester, CA USA

Re: A bug in the export snapshot command

Post by RCozens » Thu Oct 21, 2021 7:05 pm

RCozens wrote:
Tue Sep 28, 2021 7:11 pm
Why can't LiveCode resolve the "as type" argument at runtime? I have the workaround in the form of a switch, but wonder if there is a specific reason why "as type" can't be resolved at runtime when so many other command arguments can be.
Here's the answer: There is another syntax for the export command

Code: Select all

export GIF to file filename
In this command the previously-selected image is exported in GIF format (or PNG or JPEG or paint, depending on word two of the command). Methinks "export imageType to file fileName" would be more complicated for LiveCode to resolve at runtime than "export image imageName to file fileName as imageType".
Rob Cozens dba Serendipity Software Company
Manchester, CA USA

Each new generation gives more attention to the man-made world...
and less attention to the world that made man.

Post Reply

Return to “Talking LiveCode”