Questions on Wasm export, licenses and file size

2023-10-12 Thread David Bovill via use-livecode
I know that HTML5 export is not quite ready yet - but I’m a patient man :) I would like to know how it works / will work - particularly with regard to the size of the exports. With the old JavaScript export you had a separation between the engine and stacks such that you could cache the engine

Re: windows standalone seems double the file size in every version past 8.14

2017-09-06 Thread Monte Goulding via use-livecode
> On 7 Sep 2017, at 11:54 am, Monte Goulding via use-livecode > wrote: > > What platform? On mac if you build a universal app you will have standalones > twice the size of a single architecture app. Sorry Tom I guess I didn’t read the subject line very well

Re: windows standalone seems double the file size in every version past 8.14

2017-09-06 Thread Monte Goulding via use-livecode
> On 7 Sep 2017, at 6:12 am, Tom Glod via use-livecode > wrote: > > everything seems to be running fine.. BUT the standalone is twice the > size. What platform? On mac if you build a universal app you will have standalones twice the size of a single

Re: windows standalone seems double the file size in every version past 8.14

2017-09-06 Thread Tom Glod via use-livecode
http://post.spmailt.com/f/a/xp5QWwMlcQSP9Swndh52_g~~/AAGp3AA~/RgRbkY6vP0EIACzYHIgHi1BXA3NwY1gEAFkGc2hhcmVkYQdoZWxsb18xYA4zNS4xNjAuMTgyLjE1NkIKAAAvW7BZvkMIqFIddXNlLWxpdmVjb2RlQGxpc3RzLnJ1bnJldi5jb20JUQQARDFodHRwOi8vcXVhbGl0eS5saXZlY29kZS5jb20vc2hvd19idWcuY2dpP2lkPTIwMzM5RwJ7fQ~~ On Wed,

windows standalone seems double the file size in every version past 8.14

2017-09-06 Thread Tom Glod via use-livecode
Yeah...I've been trying to test my stack with versions that are past 8.14 in hopes that certain glitches are getting resolved. and they are. everything seems to be running fine.. BUT the standalone is twice the size. what could be causing that? ...i've seen it a bunch of times now. I

Re: file size

2014-09-24 Thread Thierry Douez
Dick, thanks for the feedback. I forgot about this: ... urlEncode encodes the space as +, ... Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage ___

Re: file size

2014-09-23 Thread Dick Kriesel
On Sep 22, 2014, at 4:33 PM, Richard Gaskin ambassa...@fourthworld.com wrote: But it really should be a one-liner OK, Richard. Here's one. -- given variable tFile, containing the name of a file in the default folder -- given variable tSize, which is where to put the size of the file get

Re: file size

2014-09-23 Thread Thierry Douez
2014-09-23 9:47 GMT+02:00 Dick Kriesel dick.krie...@mail.com: But it really should be a one-liner -- given variable tFile, containing the name of a file in the default folder -- given variable tSize, which is where to put the size of the file get matchText( the detailed files, (

Re: file size

2014-09-23 Thread JB
Can you get the creation date, modified date and type etc. without using the detailed files? And if so would it be faster than using the detailed files? I know you could get it by using NSFIlemanager. If you want the type the detailed files is not reliable. John Balgenorth On Sep 23, 2014,

Re: file size

2014-09-23 Thread Dick Kriesel
On Sep 23, 2014, at 1:13 AM, Thierry Douez th.do...@gmail.com wrote: Here is a modified version of yours: matchText(the detailed files,((?m)^ urlEncode( tFile ) ,(\d+) ), tSize) Hi, Thierry. When the file name contains a space, urlEncode encodes the space as +, which regex interprets,

file size

2014-09-22 Thread larry
Hello, I know I can use: put the files into field Current Files to get the size of a file (in bytes), but is there any way to use answer file or some other way to get the size of just one specific file? Thanks, Larry ___ use-livecode mailing list

Re: file size

2014-09-22 Thread Paul Hibbert
Larry, Try: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp Paul On Sep 22, 2014, at 2:29 PM, la...@significantplanet.org wrote: Hello, I know I can use: put the files into field Current Files to

Re: file size

2014-09-22 Thread Alex Tweedly
On 22/09/2014 22:29, la...@significantplanet.org wrote: Hello, I know I can use: put the files into field Current Files to get the size of a file (in bytes), but is there any way to use answer file or some other way to get the size of just one specific file? You could always do (typing

Re: file size

2014-09-22 Thread Richard Gaskin
Larry wrote: ... is there any way to use answer file or some other way to get the size of just one specific file? on mouseUp answer file Select a file: if it is empty then exit to top put FileSize(it) end mouseUp function FileSize pFilePath put the directory into tSaveDir set

Re: file size

2014-09-22 Thread larry
To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, September 22, 2014 4:50 PM Subject: Re: file size Larry, Try: on mouseUp answer file ? put binfile: it into tFile put the length of URL tFile / 1000 KB into fld myResultField end mouseUp Paul On Sep 22, 2014, at 2:29

Re: file size

2014-09-22 Thread mikedoub
‎To be technically correct divide by 1024.   Mike   Original Message   From: la...@significantplanet.org Sent: Monday, September 22, 2014 8:21 PM To: How to use LiveCode Reply To: How to use LiveCode Subject: Re: file size Thanks Paul and Alex and Richard, I ended up using Paul's code

Re: file size

2014-09-22 Thread larry
Sent: Monday, September 22, 2014 6:28 PM Subject: Re: file size ‎To be technically correct divide by 1024. Mike Original Message From: la...@significantplanet.org Sent: Monday, September 22, 2014 8:21 PM To: How to use LiveCode Reply To: How to use LiveCode Subject: Re: file size Thanks Paul

Re: file size

2014-09-22 Thread Phil Davis
If you want to do it entirely in LC and not use a shell command, you could do this: on mouseUp answer file Pick a file: if it is empty then exit to top set the itemDelimiter to slash put the defaultFolder into tOriginalDefault set the defaultFolder to item 1 to -2 of it

Re: file size

2014-09-22 Thread Paul Hibbert
Mike, That's just what I thought, but it doesn't agree with the actual file size shown in the finder, dividing by 1000 does agree with the finder. It appears this depends on whether the system uses Binary or Decimal calculations, it seems Apple use Decimal. Paul On Sep 22, 2014, at 5:28 PM

Re: Image File Size Reduction

2014-08-08 Thread Ray
Richard, I finally got around to trying your suggestions regarding changing an image file's color depth. I'm not sure what the syntax is. Here's the exact line of code: export img myImage to file myFilePath as png I've tried inserting as raw or even just raw just about everywhere I can

Re: Image File Size Reduction

2014-08-07 Thread Thierry Douez
2014-08-06 23:26 GMT+02:00 hh h...@livecode.org: One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): Sorry Hermann, but you're wrong this time :) I was only in my garden taking care of roses strongly watched by one of

Re: Image File Size Reduction

2014-08-07 Thread Ray
Richard, After considering both Image Magick and SIPS for the Mac side of things (even though Image Magick has command prompt for Mac) I've ended up working within Livecode as you've suggested. It's going well. Thanks! I'll post something tomorrow and let you know how it goes altering the

Image File Size Reduction

2014-08-06 Thread Ray
Does anybody know of a way to reduce an image's disk size from within Livecode? Specifically, I'd like to be able to: 1) change the file from PNG to JPEG 2) change the color depth for PNG's to 8 bit 3) change the dimensions Regarding the last of these I know you can set it up and

Re: Image File Size Reduction

2014-08-06 Thread Jacques Hausser
I don't know fi it's the best way, but in one of my applications, I drag and drop an image and retrieve only it's file path (e.g. : put the dragData[files] into photoFile); then I set the filename of existing empty images to this file path, adjust the size as needed (in reference to rectangles

Re: Image File Size Reduction

2014-08-06 Thread Thierry Douez
Ray, http://www.imagemagick.org/script/command-line-tools.php on Mac, you can use sips HTH, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2014-08-06 18:18 GMT+02:00 Ray r...@linkit.com: Does anybody

Re: Image File Size Reduction

2014-08-06 Thread Ray
Thierry - I didn't think there was a command-line version of Image Magick but I guess there is. Thanks! On 8/6/2014 1:36 PM, Thierry Douez wrote: Ray, http://www.imagemagick.org/script/command-line-tools.php on Mac, you can use sips HTH, Thierry

Re: Image File Size Reduction

2014-08-06 Thread Ray
Jacques - interesting. This might fit my needs. Thanks for the idea. On 8/6/2014 1:37 PM, Jacques Hausser wrote: I don't know fi it's the best way, but in one of my applications, I drag and drop an image and retrieve only it's file path (e.g. : put the dragData[files] into photoFile); then I

Re: Image File Size Reduction

2014-08-06 Thread Thierry Douez
Thierry - I didn't think there was a command-line version of Image Magick but I guess there is. Thanks! You're welcome :) I was used to work a lot with them years ago and mainly on Linux. I'm using successfully sips on Mac from time to time. Regards, Thierry On 8/6/2014 1:36 PM,

Re: Image File Size Reduction

2014-08-06 Thread Ray
Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. On 8/6/2014 1:53 PM, Thierry Douez wrote: Thierry - I didn't think there was a command-line version of Image Magick but I guess there is. Thanks! You're welcome :) I was used to

Re: Image File Size Reduction

2014-08-06 Thread Thierry Douez
Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. In between us, getting older and older, I'm sure of less and less and I'm bored with those so sure of... :) That said, the nice thing about sips is that it is already installed and

Re: Image File Size Reduction

2014-08-06 Thread Klaus major-k
Hi Ry, Am 06.08.2014 um 19:09 schrieb Ray r...@linkit.com: Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. yes, sure, but SIPS is already built-in into OS X :-) On 8/6/2014 1:53 PM, Thierry Douez wrote: Thierry - I didn't

Re: Image File Size Reduction

2014-08-06 Thread Ray
I've become a Windows user and didn't realize sips was built into the Mac OS. Thanks Klaus and Thierry. I'll look into this. On 8/6/2014 2:14 PM, Thierry Douez wrote: Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. In

Re: Image File Size Reduction

2014-08-06 Thread hh
One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): One can effectively use it via applescript by the image events suite and can even modify ColorSync ICC profiles with it (am I right Thierry?). This is not subject here

Re: Image File Size Reduction

2014-08-06 Thread Ray
Thanks hh - I haven't gotten into the Mac side yet but this is helpful for when I get around to it. On 8/6/2014 6:26 PM, hh wrote: One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): One can effectively use it via

Re: Image File Size Reduction

2014-08-06 Thread Richard Gaskin
Ray wrote: Does anybody know of a way to reduce an image's disk size from within Livecode? Specifically, I'd like to be able to: 1) change the file from PNG to JPEG import PNG; export as JPEG 2) change the color depth for PNG's to 8 bit export target as raw... might help,

Re: Image File Size Reduction

2014-08-06 Thread Mark Wieder
Ray- Wednesday, August 6, 2014, 10:17:40 AM, you wrote: I've become a Windows user My condolences. Nonetheless, I've always used imagemagick in commandline mode on whatever platform. I didn't realize there was anything else. -- -Mark Wieder ahsoftw...@gmail.com This communication may be