simpleviewer embedding that draws on gallery data (separate image and thumb paths)

rjacobs

Joined: 2007-02-18
Posts: 26
Posted: Mon, 2007-09-24 05:30

Hello,

I have been happily using Gallery for some time now and have been really impressed.

At the moment I am playing with some slick ways to embed photos from my gallery within other web structures (embedded flash shows, etc.). One of the tools i'd like to use (simpleviewer) requires that one feeds it a path to image thumbnails, and a separate path to full-res images (for each embedded slideshow that one want's to create). Then, within these 2 separate paths, one must place the image files using the SAME filenames for both the thumb and full-res versions, like this pair:

http://mydomain.com/thumbs/image1.jpg
http://mydomain.com/images/image1.jpg

i'm wondering if this is possible with Gallery, ie. is there a way (URL rewrite, config option, etc) to list an image and it's thumbnail by separate paths, but the SAME filename?

From what I have seen, it does not look like Gallery makes much distinction (within the actual data storage) between am "image" and a "thumb". it looks like both are treated just an another image id

For example, one image in my gallery can be accessed directly at:
http://gallerydomain.com/main.php?g2_view=core.DownloadItem&g2_itemId=717
and it's thumb at:
http://gallerydomain.com/main.php?g2_view=core.DownloadItem&g2_itemId=608

i know that there are other pre-packaged ways to place/embed slideshows in other domains that use gallery data, but i must admit that simpleviewer (http://www.airtightinteractive.com/simpleviewer/) is just an amazing, simple and free piece if flash software, so it would be great to somehow link it to the data already organized in a gallery install. I suppose a solution to this would also be of interest to anyone interested in integrating simpleviewer as part of a Gallery theme.

Any info greatly appreciated!

Cheers,
Ryan

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-09-24 19:20

Ryan,

The simple answer to your question is "no." If you refer to an image by path, you're referring to the original image. Any thumbnails or resizes are only referenced by itemId. So, there is not a way to currently do what you need to do.

That said, I think it wouldn't be that hard to write a set of rewrite rules to do what you'd like to do. It just hasn't been done, that I know of.

Kirk

 
rjacobs

Joined: 2007-02-18
Posts: 26
Posted: Mon, 2007-09-24 23:37

Hi Kirk,

Thanks for that info, I guess it confirms what I was wondering about the actual storage structure (and url access) for images withing Gallery.

Because things are broken down only by image id's I am assuming that the only "rewrite" way to define separate thumb and image paths (using the same filenames) would be to create a rewrite rule for every image (ie. point each thumb image id separately to a shared thumbnail path).

What i might need to do is to point simpleviewer to an image path of:
http://gallerydomain.com/main.php?g2_view=core.DownloadItem&g2_itemId=

and then download all the thumbs that i might use (manually as actual jpgs) into my own physically separate thumb path and give them the same image name as the image id (ie. 124.jpg).

The other idea would be to define the thumbs and images paths as the same (http://gallerydomain.com/main.php?g2_view=core.DownloadItem&g2_itemId=), and use the full-res id #s when creating my image list. Of course, then the thumbs won't load any faster than the actual images.

Well, anyway, if anyone encounters any other options, please to post them. i know there are at least a couple other people out there interested in linking simpleviewer to the gallery database (embedded within another domain or as part of a gallery theme)

Cheers!
Ryan

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2007-11-02 12:39

I've not solved this issue, but I have posted a simpleviewer plugin on this thread:

http://gallery.menalto.com/node/67310

It might be of interest.