Page 6 of 8

Re: Images in Livecode

Posted: Wed Aug 09, 2017 2:27 pm
by bogs
richmond62 wrote:
Elton_John_-_Don't_Shoot_Me_I'm_Only_the_Piano_Player.jpg
Come to think of things: have a shot at the guitar player :twisted:
Glad I play the banjo, too much violence in the other slots :lol:

Re: Images in Livecode

Posted: Wed Aug 09, 2017 2:35 pm
by Klaus
To quote Mark Twain:
A gentleman is a man who can play the banjo, but doesn't! :D

@ Richmond:
I play the BASS! 8)

Re: Images in Livecode

Posted: Wed Aug 09, 2017 3:46 pm
by bogs
Sure glad I ain't no gentleman ! :P

You play a bass?
Image
Sounds fishy to me :P :P

Re: Images in Livecode

Posted: Wed Aug 09, 2017 4:04 pm
by Klaus
Yes, I play Bass! :D

Re: Images in Livecode

Posted: Wed Aug 09, 2017 5:00 pm
by jacque
After all that, is there a reason not to use the import and export commands? These are built into the engine and do everything you want in single one-line commands. They are specifically designed to work with images and will preserve all the binary information.

Re: Images in Livecode

Posted: Wed Aug 09, 2017 5:32 pm
by richmond62
Klaus wrote:Yes, I play Bass! :D
Well, you should be relieved I misfired. 8)

Re: Images in Livecode

Posted: Wed Aug 09, 2017 7:21 pm
by [-hh]
jacque wrote:After all that, is there a reason not to use the import and export commands?
There is no deep logic in this thread, it is "experimental", if not "highly experimental" as soon as I'll come in playing saxes.

Re: Images in Livecode

Posted: Wed Aug 09, 2017 7:27 pm
by richmond62
newFools.jpg
I just play the fool.

Watch my folly here:

https://www.dropbox.com/s/rgeiyqivudsvh ... d.m4v?dl=0

Re: Images in Livecode

Posted: Thu Aug 10, 2017 12:44 am
by bidgeeman
Hi Jacque.
Yes I want to be able to handle the alpha channel separately to the bitmap. This format serves two purposes as
it gives my artwork some form of protection from the normal person as well as allow me to swap alpha channels
and transfer them between designs, turn them off etc.
guess you could argue that this can be done many other ways as well but I am still learning LC and at this stage
I have a grasp on how the skin on this cat works :)

Klaus, do you actually play Bass? (not the fish the instrument :)
Bidge

Re: Images in Livecode

Posted: Thu Aug 10, 2017 5:04 am
by bogs
bidgeeman wrote:Klaus, do you actually play Bass? (not the fish the instrument :)
Yes, yes he does, and quite well from all reports.

Re: Images in Livecode

Posted: Thu Aug 10, 2017 7:50 am
by richmond62
I am still learning LC
If it is any comfort at all, after 16 years I am still learning Livecode.

As Livecode is extremely complex and keeps getting bigger I'd be surprised if
there were anyone who, being completely honest, would say that they
know Livecode 100%.

This is great: can you imagine how boring things would be if there
were not new things to be discovered every day?

Re: Images in Livecode

Posted: Thu Aug 10, 2017 9:54 am
by bidgeeman
richmond62. Thanks for the encouragement. I appreciate all your help as well as all the others.
Thanks bogs: Klaus. I also play Bass and sing. For many years mainly jazz but do a lot of covers now.
Bidge

Re: Images in Livecode

Posted: Thu Aug 10, 2017 10:04 am
by Klaus
Hi friends,

please find out yourselfes:
http://www.major-k.de/bass/index.html

Best

Klaus

Re: Images in Livecode

Posted: Fri Aug 11, 2017 12:40 am
by [-hh]
This is related to a problem discussed in this thread:
Separating alphaData and imageData when saving and saving in one file.
I use parts of the scripts that I posted above for the JPNG compression:

JPNG (named using JPEG and PNG) is not an image format but a compression method.
We use the file ending ".lcjpng" for that.

It takes features from both JPEG (setting JPEGquality to compress the imageData and from the PNG compression the alphaData/transparency). It saves the alphaData, optionally the maskData, and the JPEG-compressed imageData in one file. The compressed image has here, using a JPEGquality of 80, around 25% of the PNG-compressed size.

So this may be interesting for people who wish to compress the images in their stack/standalone and decompress only some images for "current" use.

Compression/Decompression is very fast.
See stack "JPNG" via the "Sample stacks" of the LC toolbar or (slower) here:
http://livecodeshare.runrev.com/stack/841/JPNG

Re: Images in Livecode

Posted: Fri Aug 11, 2017 1:40 am
by bidgeeman
[-hh]
That stack is fantastic! Can I ask where the processing is done?
Just by naming it as "JPNG" does the file extension refer to a library to process/compress the PNG data?
(Complete beginner questions please forgive).

Bidge