Thumbnail on txt file?

prothero at earthlearningsolutions.org prothero at earthlearningsolutions.org
Sat Jan 18 10:57:04 EST 2020


Mic,
An issue is how to efficiently maintain the association between the text file and its image. The easiest way is probably to just add something, like “-tn” to the name of the text file, for the name of the image. That way you can just test for the existence of file mytextfilename&”-tn” load it and display it wherever you want. 

One concern comes to mind, though. If you capture an image of text, then display it at a reduced size, it may quickly become unreadable.

Bill

William Prothero
http://es.earthednet.org

> On Jan 18, 2020, at 5:17 AM, Michael Kristensen via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Thanks for the answer, Richmond
> 
> I just want to describe a little more what I want
> 
> I Livecode I want to take a snapshot of part of the screen, and that snapshot I want to use as thumbnail for the txt file.
> 
> In that way I can see what the txt file represent.
> 
> Does that change anything?
> 
> Mic
> 
>> Subject: Re: Thumbnail on txt file?
>> Message-ID: <492a6ff7-7a25-5a4d-bc05-fd79fb1d9a92 at gmail.com <mailto:492a6ff7-7a25-5a4d-bc05-fd79fb1d9a92 at gmail.com>>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>> 
>> Surely that is something that is done by the operating system or its 
>> desktop/windowing manager and not by LiveCode.
>> 
>>> On 18.01.20 11:26, Michael Kristensen via use-livecode wrote:
>>> Hi there
>>> 
>>> Im using a simple txt file for storing data.
>>> 
>>> I want to stick a preview thumbnail onto it when I save it.
>>> 
>>> Can I do that?
>>> 
>>> Mac High Sierra
>>> 
>>> 
>>> Thanks
>>> 
>>> Michael
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com <mailto: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 <http://lists.runrev.com/mailman/listinfo/use-livecode>
> _______________________________________________
> 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





More information about the use-livecode mailing list