Embed thumbnail in another page, by ID
thornsoft
Joined: 2007-01-16
Posts: 3 |
Posted: Tue, 2007-01-16 23:19 |
Hi All, Here's what I THOUGT would work: Anyone know what to do here? I saw an old thread that talked about external image blocks, short URLs, and needing access to the webroot. I really don't want to expose my directory like that. Is there a good way to do this? |
|
Posts: 3
It seems so simple, but the more I dig, the more I see that isn't easily done. I wonder if there would be so many discussions on integration if there were a simpler method of accessing a picture? It seems like a shortcoming in Gallery, that there isn't a way to fetch a picture by URL, such as:
http://www.mysite.com/gallery/getimage.php?id=1234&size=thumb
http://www.mysite.com/gallery/getimage.php?id=1234&sizex=800&sizey=600
http://www.mysite.com/gallery/getimage.php?id=1234&sizex=800&sizey=fit
http://www.mysite.com/gallery/getimage.php?id=1234&size=full
I saw the GetUrls module, but that requires you to go through the gallery and grab the URLs via copy/paste, etc., because you can't predict what the image will be.
Hmm. I may be taking the wrong approach here.
I was hoping to write a simple php/mysql script to grab the most 10 recent items (or most popular, most viewed, etc.,) and display those in a flash slideshow on another site.
Posts: 19
Goto site admin in gallery and look at the image block module. It gives directions on how to do this using php.
Posts: 3
Close, but that gives HTML crap around the image. I just want the .jpg file. I also get a security violation if I try to use the specificImage= option, but I suppose that could be overcome, if I tried hard. But it's a non-starter anyway. I'm trying to get a list of .jpg files to feed into a flash slideshow rotator, and this isn't going to do it.