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 part in the browser to speed up
the loading of the much smaller stacks. Is that the case (or it is intended
to be the case in the future) with the wasm export?

I’m looking towards a world in which multiple wasm components written in
various languages sit on a web page talking to each other.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 :-(

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 architecture app.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, Sep 6, 2017 at 4:12 PM, Tom Glod  wrote:

> 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 once watched the folder when the standalone is built. and its your
> .livecode file . that gets copied then renamed to exe file . by
> what magic this all happens, I guess I will find out iby looking at the
> build standalone code.
>
> So I'm guessing something isn't getting erased.
>
> any thoughts? i guess is should bug report it too.
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 once watched the folder when the standalone is built. and its your
.livecode file . that gets copied then renamed to exe file . by
what magic this all happens, I guess I will find out iby looking at the
build standalone code.

So I'm guessing something isn't getting erased.

any thoughts? i guess is should bug report it too.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 matchText( the detailed files, ( (?m)^\Q  urlEncode( tFile )  
,\E(\d*).* ), tSize )

Too bad it's so hard to read, remember, and type.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, ( (?m)^\Q  urlEncode( tFile )  
 ,\E(\d*).* ), tSize )

Excellent! I like it :)

 Too bad it's so hard to read, remember, and type.

Dick,

Here is a modified version of yours:

matchText(the detailed files,((?m)^  urlEncode( tFile )  ,(\d+) ), tSize)


and  I really don't find hard at all to read...


Regards,

Thierry



Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, at 1:13 AM, Thierry Douez th.do...@gmail.com wrote:

 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, ( (?m)^\Q  urlEncode( tFile )  
 ,\E(\d*).* ), tSize )
 
 Excellent! I like it :)
 
 Too bad it's so hard to read, remember, and type.
 
 Dick,
 
 Here is a modified version of yours:
 
 matchText(the detailed files,((?m)^  urlEncode( tFile )  ,(\d+) ), 
 tSize)
 
 
 and  I really don't find hard at all to read...
 
 
 Regards,
 
 Thierry
 
 
 
 Thierry Douez - http://sunny-tdz.com
 Maker of sunnYperl - sunnYmidi - sunnYmage
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, causing the match to fail and tSize to be empty.  The \Q...\E 
causes regex to see everything enclosed as a literal, including the +, so the 
match succeeds and tSize is correct.

Glad you like it.

-- Dick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 into email, untested ...)
   put shell(ls -l   theFileInQuestion) into temp
and then parse temp to get the size out.
If the filename could contain special characters (e.g. spaces) then you 
would need to add some extra level of quotes.


So it would be easier (and almost certainly faster) to do
   put the detailed files into temp
   filter temp with *  theFileInQuestion  *)
and then parse that.

-- Alex.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 the itemdel to /
   put urlEncode(last item of pFilePath) into tFileName
   delete last item of pFilePath
   set the directory to pFilePath
   put the detailed files into tFiles
   set the directory to tSaveDir
   put lineoffset( cr tFileName comma, cr tFiles) into tLineNum
   set the itemdel to comma
   return item 2 of line tLineNum of tFiles
end FileSize


But it really should be a one-liner, so I submitted a request for being 
able to obtain such info for a single file:

http://quality.runrev.com/show_bug.cgi?id=13182

--
 Richard Gaskin
 Fourth World Systems
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter: http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: file size

2014-09-22 Thread larry

Thanks Paul and Alex and Richard,

I ended up using Paul's code:
on mouseUp
  answer file ?
  put binfile:  it into tFile
  put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

It works just great!
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

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 PM, 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?




Thanks,

Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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:
on mouseUp
answer file ?
put binfile:  it into tFile
put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

It works just great!
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com
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 PM, 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?



 Thanks,

 Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: file size

2014-09-22 Thread larry

Hi Mike,
good point, but actually my line is:
put the length of URL tFile into field myResult

because I want the actual number and not how many kb.
Larry

- Original Message - 
From: miked...@gmail.com
To: use-livecode@lists.runrev.com; How to use LiveCode 
use-livecode@lists.runrev.com

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 and Alex and Richard,

I ended up using Paul's code:
on mouseUp
answer file ?
put binfile:  it into tFile
put the length of URL tFile / 1000  KB into fld myResultField
end mouseUp

It works just great!
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

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 PM, 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?



Thanks,

Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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
put the detailed files into tList
set the defaultFolder to tOriginalDefault
filter tList with urlEncode(last item of it)  ,*
set the itemDelimiter to comma
answer Length of file  quote  first item of tList  quote  
is  item 2 of tList  bytes.

end mouseUp

Phil Davis



On 9/22/14 2:29 PM, 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?



Thanks,

Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, miked...@gmail.com wrote:

 ‎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:
 on mouseUp
 answer file ?
 put binfile:  it into tFile
 put the length of URL tFile / 1000  KB into fld myResultField
 end mouseUp
 
 It works just great!
 Larry
 
 - Original Message - 
 From: Paul Hibbert paulhibb...@mac.com
 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 PM, 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?
 
 
 
 Thanks,
 
 Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 imagine in that command and I always come up with errors.


Your other suggestions are working out really well.  I'm especially 
having fun 'exporting with palette'


Many thanks!!!


On 8/6/2014 9:52 PM, Richard Gaskin wrote:

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, maybe even export with 
palette... (filter the Dictionary for export to see the new options)


But AFAIK JPEG is always full color anyway, so the biggest reduction 
in size is likely to come from setting the JPEGQuality global property 
before exporting in that format.



 3)  change the dimensions

  set the rect...



 Regarding the last of these I know you can set it up and take a
 snapshot but I was kind of looking for a way to do all three of
 these without a lot of fussing around.

Any such transformations will involve some fussing around, but it's 
often more fun to fuss around in LiveCode than anything else. :)





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 my cat..

 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?).

Certainly.
But working only from time to time with Applescripts, I can't say much..
and I'm more used to shell() and terminal which have also the advantage
of being almost cross-platform.

Thierry

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 
color depth.


Ray

On 8/6/2014 9:52 PM, Richard Gaskin wrote:

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, maybe even export with 
palette... (filter the Dictionary for export to see the new options)


But AFAIK JPEG is always full color anyway, so the biggest reduction 
in size is likely to come from setting the JPEGQuality global property 
before exporting in that format.



 3)  change the dimensions

  set the rect...



 Regarding the last of these I know you can set it up and take a
 snapshot but I was kind of looking for a way to do all three of
 these without a lot of fussing around.

Any such transformations will involve some fussing around, but it's 
often more fun to fuss around in LiveCode than anything else. :)





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 take a snapshot 
but I was kind of looking for a way to do all three of these without a 
lot of fussing around.


If not, does anybody know of any command line tools which will do this?  
Image Magick works but I don't believe they have a command prompt 
version.  Very PDF has a product named Document Converter but it only 
does #1.


Many Thanks!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 
on the card) and export them as jpeg (and so I get rid of EXIF metadata). For 
the colors, I don't know...


Le 6 août 2014 à 18:18, Ray r...@linkit.com a écrit :

 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 take a snapshot but 
 I was kind of looking for a way to do all three of these without a lot of 
 fussing around.
 
 If not, does anybody know of any command line tools which will do this?  
 Image Magick works but I don't believe they have a command prompt version.  
 Very PDF has a product named Document Converter but it only does #1.
 
 Many Thanks!
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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 take a snapshot but
 I was kind of looking for a way to do all three of these without a lot of
 fussing around.

 If not, does anybody know of any command line tools which will do this?
 Image Magick works but I don't believe they have a command prompt version.
 Very PDF has a product named Document Converter but it only does #1.

 Many Thanks!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


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 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 take a snapshot but
I was kind of looking for a way to do all three of these without a lot of
fussing around.

If not, does anybody know of any command line tools which will do this?
Image Magick works but I don't believe they have a command prompt version.
Very PDF has a product named Document Converter but it only does #1.

Many Thanks!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 
set the filename of existing empty images to this file path, adjust the size as needed (in 
reference to rectangles on the card) and export them as jpeg (and so I get rid of EXIF 
metadata). For the colors, I don't know...


Le 6 août 2014 à 18:18, Ray r...@linkit.com a écrit :


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 take a snapshot but I 
was kind of looking for a way to do all three of these without a lot of fussing 
around.

If not, does anybody know of any command line tools which will do this?  Image 
Magick works but I don't believe they have a command prompt version.  Very PDF 
has a product named Document Converter but it only does #1.

Many Thanks!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, Thierry Douez wrote:

 Ray,

 http://www.imagemagick.org/script/command-line-tools.php

 on Mac, you can use sips

 
 Thierry Douez - http://sunny-tdz.com
 Maker of sunnYperl - sunnYmidi - sunnYmage

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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, Thierry Douez wrote:

Ray,

http://www.imagemagick.org/script/command-line-tools.php

on Mac, you can use sips


Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 working on the Mac; nothing to download.
That's why I speak about it.

Comparing sips with imagemagick will be another topic,
and certainly a long one. Both tools are good.

Does that make sense?

Thierry



 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 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, Thierry Douez wrote:

 Ray,

 http://www.imagemagick.org/script/command-line-tools.php

 on Mac, you can use sips

 
 Thierry Douez - http://sunny-tdz.com
 Maker of sunnYperl - sunnYmidi - sunnYmage

 ___

 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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, Thierry Douez wrote:
 Ray,
 http://www.imagemagick.org/script/command-line-tools.php
 on Mac, you can use sips

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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 working on the Mac; nothing to download.
That's why I speak about it.

Comparing sips with imagemagick will be another topic,
and certainly a long one. Both tools are good.

Does that make sense?

Thierry



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 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, Thierry Douez wrote:

Ray,

http://www.imagemagick.org/script/command-line-tools.php

on Mac, you can use sips


Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage

___

use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 but may be interesting for some 'beginner readers' in 
this context:
convert, one of the imageMagick tools Klaus had in mind, could have some more 
options than sips for importing/exporting special formats (camera formats), see
put shell(/usr/local/bin/convert -list format).
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 applescript by the image events suite and can 
even modify ColorSync ICC profiles with it (am I right Thierry?).

This is not subject here but may be interesting for some 'beginner readers' in 
this context:
convert, one of the imageMagick tools Klaus had in mind, could have some more 
options than sips for importing/exporting special formats (camera formats), see
put shell(/usr/local/bin/convert -list format).
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, maybe even export with 
palette... (filter the Dictionary for export to see the new options)


But AFAIK JPEG is always full color anyway, so the biggest reduction in 
size is likely to come from setting the JPEGQuality global property 
before exporting in that format.



 3)  change the dimensions

  set the rect...



 Regarding the last of these I know you can set it up and take a
 snapshot but I was kind of looking for a way to do all three of
 these without a lot of fussing around.

Any such transformations will involve some fussing around, but it's 
often more fun to fuss around in LiveCode than anything else. :)


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode