get type from the text of image

Monte Goulding monte at sweattechnologies.com
Fri Feb 22 17:05:44 EST 2013


It turns out the paintCompression is yet another property not in the properties array (YAPNITPA)... 

On 23/02/2013, at 8:37 AM, Monte Goulding <monte at sweattechnologies.com> wrote:

> Ah... the paintCompression might be sufficient to use as an extension. It's not perfect but it will probably do.
> 
> Basically if someone imported a JPG I didn't think it would be suitable for the VCS to export/import as png. If you say it would be ok then I'll run with that.
> 
> What I'm doing is each object will be represented by a folder and while most properties will be exported as JSON I thought there are some properties that would be better as separate files. The script is the prime example but an image is another one. Also I'm considering the htmlText of a field may be worthwhile as a separate property although that could get quite complicated for unshared text in shared groups so might be best avoided.
> 
> 
> On 23/02/2013, at 8:22 AM, Scott Rossi <scott at tactilemedia.com> wrote:
> 
>> You can probably use the paintCompression property to check the image
>> type.  It might also help to know that PNG is essentially lossless -- you
>> shouldn't lose any image data using this format.  You may find that
>> dealing with the gamma of PNG images is something of a black art and can
>> cause subtle changes in how an image is displayed.  But this is true for
>> the many apps that save/display PNGs, as well as LC, so it may not be an
>> issue.
> 
> --
> Monte Goulding
> 
> M E R Goulding - software development services
> mergExt - There's an external for that!
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!








More information about the use-livecode mailing list