Archived posting to the Leica Users Group, 2010/07/07

[Author Prev] [Author Next] [Thread Prev] [Thread Next] [Author Index] [Topic Index] [Home] [Search]

Subject: [Leica] IMG: Thangka Tuesday - Arhat Ajita
From: john.nebel at csdco.com (John Nebel)
Date: Wed, 07 Jul 2010 08:58:47 -0600
References: <4C33E4CA.9050501@csdco.com> <0E1527A3-7F44-4B2C-8E5D-558FEB0CFE80@frozenlight.eu>

Greetings Nathan,

Thanks for looking!

As for the clickable detail, the concept obviously works with any image and 
could scale to a gigantic size.  The thangka images are sliced into 64x64 
pixel 
squares. The shape and size were a somewhat experimentally derived choice.  
It's 
important to keep the slices relatively small so that cursor positioning is 
accurate.  In the case of the thangkas, each is about 21,500 slices and one 
must 
be aware of file system limitations.  The slices must be named methodically, 
something simple like image_0 to image_n is fine as long as one knows the 
image 
height and width in numbers of slices.

The clickable image must be proportional to the image which was sliced up, 
ie. 
scaled down from.

A javascript onClick calls a routine to compute the x and y coordinates of 
the 
cursor image offsets and the file names of the slices in the displayed slice 
array.  The size and shape of the displayed array is arbitrary.

The appropriate slices are then loaded into an array in the pop-up 
initialized 
with a single repeating white slice.

Improvements could be made such as resizing and and panning within the 
pop-up, 
but at a certain point it would be too much a toy.

Best,

John

Nathan Wajsman wrote:
> Most impressive as always, John. I know you have explained it before, but 
> would you mind re-capping how you achieve the clickable detail? Does it 
> involve a lot of hand work or is it just computing power?
> 
> Cheers,
> Nathan
> 
> Nathan Wajsman
> Alicante, Spain
> http://www.frozenlight.eu
> http://www.greatpix.eu
> http://www.nathanfoto.com
> PICTURE OF THE WEEK: http://www.fotocycle.dk/paws
> Blog: http://www.fotocycle.dk/blog
> 
> YNWA
> 
> 
> 
> 
> 
> On Jul 7, 2010, at 4:22 AM, John Nebel wrote:
> 
>> http://thangkas.csd.net/ajita.html
>>
>> The image is clickable to show detail.
>>
>> John
>>
>> _______________________________________________
>> Leica Users Group.
>> See http://leica-users.org/mailman/listinfo/lug for more information
>>
> 
> 
> _______________________________________________
> Leica Users Group.
> See http://leica-users.org/mailman/listinfo/lug for more information


In reply to: Message from john.nebel at csdco.com (John Nebel) ([Leica] IMG: Thangka Tuesday - Arhat Ajita)
Message from photo at frozenlight.eu (Nathan Wajsman) ([Leica] IMG: Thangka Tuesday - Arhat Ajita)