extracting the thumbnail from digital photos?

Michael Doub mikedoub at gmail.com
Fri Jan 30 14:40:01 EST 2015


Ethan,

I not sure that I understand your question but here is a example of how 
to use the routine found in the MasterLibrary:

put  __getThumbs (pfilepath ) into imageArray
if imageArray is not an array then
    answer "No thumbnails"
else
    create image
    set the text of it to imageArray[1]
end if

This assumes that you want the first thumbnail.   I have seen photos 
that have multiple thumbnails, each a different size.

Hope this helps.
    Mike



On 1/30/15 1:53 PM, Ethan Lish wrote:
> Hey
>
>
> On a related note, can this function be used/expanded to create a thumbnail image (tile) of a website. Looking to use this static image as a "button" to launch the full site in another card/browser
>
>
>
>
> Code examples welcome ;-)
>
>
>
>
> E
>
>
>> Ethan at Lish.net240.876.1389
>
> On Fri, Jan 30, 2015 at 7:03 AM, Mike Doub <mikedoub at gmail.com> wrote:
>
>> In my implementation I put all of the thumbnails into an array.  If there
>> are no thumbnails found, the array is empty.
>> Mike
>> On Friday, January 30, 2015, Malte Brill <revolution at derbrill.de> wrote:
>>> Hi Al,
>>>
>>> sorry to chime in late. I was on the road without any iNet access. The
>>> last iteration of the script including numToByte and setting the case
>>> sensitive to true indeed does work extracting the thumbnail image. And it
>>> is incredibly fast. :-) I still have troubles to see if there is no
>>> thumbnail in the image though. Need tto dig into that.
>>>
>>> All the best and thanks again!
>>>
>>> Malte
>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com <javascript:;>
>>> 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 at 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 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