ok. here is what i want to do.
some facts-
I am querying the database to write an XML doc which plugs into flash.
This Doc will use BOTH the CACHE folder AND the ALBUMS/SOMEALBUM folder. to genrate a file list. It must work the way the XML doc is formatted. which means i can not connect to the image using the
"index.php?album=somealbum&image=someimage.jpg&p=*full-image" system
the usage must be- (for flash to access the file)
"page.com/zenphoto/albums/somealbum/myimage.jpg"
AND
"page.com/zenphoto/cache/myimage.jpg"
So here is what i want to know.
should be simple, but the re-nameing system is not well commented or i am looking at the wrong .php page.
thankyou!
just need some pointers as to where these things are controlled.
cheers!
dyht
I am not clear on why you need to fetch images from the cache and the albums folder both. The cache is just resized versions of what is in the albums folder. Additionally, the cache may not be complete. Only the albums folder is the definitive answer to what images exist.
ok, but when i punch in the exact URL
(page.com/zenphoto/albums/somealbum/myimage.jpg)
of the image i am re-directed to a url that looks like this-
(index.php?album=somealbum&image=someimage.jpg&p=*full-image)
where is that controlled?
as for the cache,i want to load the thumbnails into the flash player and have them link to the larger, problem is that the nameing convention "image.jpg_100_100.jpg" confuses flash in the way i am using it with AS3.0.
i wanted to use zen photo because of its accessibility. the plan was to make sure images show up in google, then re-direct every user who lands on any zen page to the main flash page from the zen front end. basically replaceing the front end with a flash player. i would only be useing the admin side to 'power' the flash app, and of course give credits.
i just want to remove the rename before the save to the cache folder.
. ($size ? "&s=$size" : "" ) . ($width ? "&w=$width" : "") . ($height ? "&h=$height" : "")
. ($cropw ? "&cw=$cropw" : "") . ($croph ? "&ch=$croph" : "")
. ($cropx ? "&cx=$cropx" : "") . ($cropy ? "&cy=$cropy" : "") ;
i know its gotta be the get thumb(), but it must happen somewhere using the GDimage library...
(does getImageParameters also play a role in this too?)
ill be tinkering with it. just hopeing for some direction...
am i in the right spot, lines 415-435 of the image class? i can see that i.php has some hand in this. im just looking for the function that re-named the thumbs. i can care less about the front end functions.
ps- is there a debug mode?