ok. here is what i want to do.
some facts-
- I have Zen Photo, newest version, 1.2.
- I got this to work on an older version once.
- I know PHP amd MySQL pretty well.
- we are starting from a fresh install
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.
#1- I would like to disable the re-direct system that keeps you out of the albums and cache folders. i think is may be in the .htdocs file.
#2- I would like to re-write or edit the thumbnail system to remove the file re-name "someimage.jpg_100_100.jpg" so the thumb is the EXACT name as the image in the database.
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
Comments
#2. This will break zenphoto. Zephoto caches multiple copies of the image--one for each size used. Typically this would be one for the "default sized" image and one for the thumbnail. These need to have different names. In fact it is the naming convention which allows zenphoto to check to see if there is already a cached version of the image.
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.
(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.
is this how the thumbs get re-named?
---------------------------------------
. ($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?