Announcement

  •  » Engine
  •  » Multiple-size

#31 2012-01-16 14:21:53

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Multiple-size

Perfect. I'll do.

Offline

 

#32 2012-01-17 01:25:13

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Multiple-size

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

 

#33 2012-01-17 01:26:08

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Multiple-size

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

 

#34 2012-01-17 01:27:20

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Multiple-size

rvelices, I have added :

Code:

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

 

#35 2012-04-05 18:19:09

flop25
Piwigo Team
2006-07-06
7037

Re: Multiple-size

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 ?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#36 2023-03-17 18:06:37

beepro
Member
2021-09-05
59

Re: Multiple-size

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

 
  •  » Engine
  •  » Multiple-size

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact