rvelices wrote:
in file_path_for_type the only acceptable $type parameters should be 'original' and 'representative' (if the added element is not a picture)
Actually, function file_path_for_type becomes obsolete with Piwigo 2.4. The only functions using it needs to be rewritten or removed (ws_images_resizewebsize and ws_images_resizethumbnail)
Offline
I've made the pwg.images.add mecanism compatible with multiple size. It's a bit tricky for pwg.images.checkFiles but it should be good enough for pLoader users.
Offline
rvelices, I have added :
function delete_element_derivatives($ids) { // todo if (!is_array($ids)) { $ids = array($ids); } // for now I do a massive clear, to be removed once the function is // properly implemented clear_derivative_cache(); }
I let you improve this function :-)
Offline
rvelices wrote:
in file_path_for_type the only acceptable $type parameters should be 'original' and 'representative' (if the added element is not a picture)
file_path_for_type still use has_high
and get_high_path() (no use) get_high_url() (reference in triggers_list) get_high_location() (used in file_path_for_type and has reference in triggers_list) should be deleted no ?
Offline
how do I hot link to another blog? it seems photo-me.jpg is pretty stable (not deleted) in the cache? (but I am not sure, it seems to be removed periodically also?).
i tried linking to photo-xx.jpg and it would take a while to see the photos and then next day the links break.
so, how do I link to a photo hosted at a piwigo site?
is there a way to link to the original files (I am changing my habit to only upload files at 1800 as the largest dimension).
Thanks.
Z
Offline