2020-08-18, 01:50:40
Hi Bigin,
Does the ItemManager-3 api have a way to access the thumbnail pictures ?
I get stuck at $item->path . 'thumbnail/';
how to go from there in a for each loop ?
Possible workarounds with php:
$var = GSROOTPATH . 'framework/data/uploads/1.1.1/thumbnail/';
$thumbs = array_diff(scandir($var), array('.', '..'));
Is there more information about $image->resize ? e.g. null, "adaptiveResize" ?
It looks that it auto generates thumbs in the thumbnail directory with size values you give to resize.
Does the ItemManager-3 api have a way to access the thumbnail pictures ?
I get stuck at $item->path . 'thumbnail/';
how to go from there in a for each loop ?
Possible workarounds with php:
$var = GSROOTPATH . 'framework/data/uploads/1.1.1/thumbnail/';
$thumbs = array_diff(scandir($var), array('.', '..'));
Is there more information about $image->resize ? e.g. null, "adaptiveResize" ?
It looks that it auto generates thumbs in the thumbnail directory with size values you give to resize.