feature 2541 multisize

- core implementation + usage on most public/admin pages
- still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ...

git-svn-id: http://piwigo.org/svn/trunk@12796 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2011-12-27 05:26:44 +00:00
parent e77e68b7db
commit 753f58d6a9
27 changed files with 1113 additions and 208 deletions

View File

@@ -408,7 +408,7 @@ if (count($comments) > 0)
// retrieving element informations
$elements = array();
$query = '
SELECT id, name, file, path, tn_ext
SELECT id, name, file, path, representative_ext
FROM '.IMAGES_TABLE.'
WHERE id IN ('.implode(',', $element_ids).')
;';
@@ -450,7 +450,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id
}
// source of the thumbnail picture
$thumbnail_src = get_thumbnail_url( $elements[$comment['image_id']] );
$thumbnail_src = DerivativeImage::thumb_url( $elements[$comment['image_id']] );
// link to the full size picture
$url = make_picture_url(